Show / Hide Table of Contents

Struct Vec2f

2-Tuple of float (System.Single)

Implements
IVec<Vec2f, System.Single>
IVec
IEquatable<Vec2f>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public struct Vec2f : IVec<Vec2f, float>, IVec

Constructors

| Improve this Doc View Source

Vec2f(Single, Single)

Initializer

Declaration
public Vec2f(float item0, float item1)
Parameters
Type Name Description
System.Single item0
System.Single item1

Fields

| Improve this Doc View Source

Item0

The value of the first component of this object.

Declaration
public float Item0
Field Value
Type Description
System.Single
| Improve this Doc View Source

Item1

The value of the second component of this object.

Declaration
public float Item1
Field Value
Type Description
System.Single

Properties

| Improve this Doc View Source

Item[Int32]

Indexer

Declaration
public float this[int i] { readonly get; set; }
Parameters
Type Name Description
System.Int32 i
Property Value
Type Description
System.Single

Methods

| Improve this Doc View Source

Add(Vec2f)

this + other

Declaration
public readonly Vec2f Add(Vec2f other)
Parameters
Type Name Description
Vec2f other
Returns
Type Description
Vec2f
| Improve this Doc View Source

Deconstruct(out Single, out Single)

Deconstructing a Vector

Declaration
public readonly void Deconstruct(out float item0, out float item1)
Parameters
Type Name Description
System.Single item0
System.Single item1
| Improve this Doc View Source

Divide(Double)

this / alpha

Declaration
public readonly Vec2f Divide(double alpha)
Parameters
Type Name Description
System.Double alpha
Returns
Type Description
Vec2f
| Improve this Doc View Source

Equals(Vec2f)

Declaration
public readonly bool Equals(Vec2f other)
Parameters
Type Name Description
Vec2f other
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Equals(Object)

Declaration
public override readonly bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean
Overrides
System.ValueType.Equals(System.Object)
| Improve this Doc View Source

GetHashCode()

Declaration
public override readonly int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.ValueType.GetHashCode()
| Improve this Doc View Source

Multiply(Double)

this * alpha

Declaration
public readonly Vec2f Multiply(double alpha)
Parameters
Type Name Description
System.Double alpha
Returns
Type Description
Vec2f
| Improve this Doc View Source

Subtract(Vec2f)

this - other

Declaration
public readonly Vec2f Subtract(Vec2f other)
Parameters
Type Name Description
Vec2f other
Returns
Type Description
Vec2f
| Improve this Doc View Source

ToString()

Declaration
public override readonly string ToString()
Returns
Type Description
System.String
Overrides
System.ValueType.ToString()
| Improve this Doc View Source

ToVec2d()

Declaration
public Vec2d ToVec2d()
Returns
Type Description
Vec2d
| Improve this Doc View Source

ToVec2i()

Declaration
public Vec2i ToVec2i()
Returns
Type Description
Vec2i

Operators

| Improve this Doc View Source

Addition(Vec2f, Vec2f)

Declaration
public static Vec2f operator +(Vec2f a, Vec2f b)
Parameters
Type Name Description
Vec2f a
Vec2f b
Returns
Type Description
Vec2f
| Improve this Doc View Source

Division(Vec2f, Double)

Declaration
public static Vec2f operator /(Vec2f a, double alpha)
Parameters
Type Name Description
Vec2f a
System.Double alpha
Returns
Type Description
Vec2f
| Improve this Doc View Source

Equality(Vec2f, Vec2f)

Declaration
public static bool operator ==(Vec2f a, Vec2f b)
Parameters
Type Name Description
Vec2f a
Vec2f b
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Inequality(Vec2f, Vec2f)

Declaration
public static bool operator !=(Vec2f a, Vec2f b)
Parameters
Type Name Description
Vec2f a
Vec2f b
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Multiply(Vec2f, Double)

Declaration
public static Vec2f operator *(Vec2f a, double alpha)
Parameters
Type Name Description
Vec2f a
System.Double alpha
Returns
Type Description
Vec2f
| Improve this Doc View Source

Subtraction(Vec2f, Vec2f)

Declaration
public static Vec2f operator -(Vec2f a, Vec2f b)
Parameters
Type Name Description
Vec2f a
Vec2f b
Returns
Type Description
Vec2f

Implements

IVec<TSelf, TElem>
IVec
IEquatable<>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX