Struct Vec2d
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
2-Tuple of double (System.Double)
[Serializable]
public struct Vec2d : IVec<Vec2d, double>, IVec, IEquatable<Vec2d>
- Implements
- Inherited Members
Constructors
Vec2d(double, double)
Initializer
public Vec2d(double item0, double item1)
Parameters
Fields
Item0
The value of the first component of this object.
public double Item0
Field Value
Item1
The value of the second component of this object.
public double Item1
Field Value
Properties
this[int]
Indexer
public double this[int i] { readonly get; set; }
Parameters
iint
Property Value
Methods
Add(Vec2d)
this + other
public readonly Vec2d Add(Vec2d other)
Parameters
otherVec2d
Returns
Deconstruct(out double, out double)
Deconstructing a Vector
public readonly void Deconstruct(out double item0, out double item1)
Parameters
Divide(double)
this / alpha
public readonly Vec2d Divide(double alpha)
Parameters
alphadouble
Returns
Equals(Vec2d)
Indicates whether the current object is equal to another object of the same type.
public readonly bool Equals(Vec2d other)
Parameters
otherVec2dAn object to compare with this object.
Returns
Equals(object?)
public override readonly bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
Returns the hash code for this instance.
public override readonly int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Multiply(double)
this * alpha
public readonly Vec2d Multiply(double alpha)
Parameters
alphadouble
Returns
Subtract(Vec2d)
this - other
public readonly Vec2d Subtract(Vec2d other)
Parameters
otherVec2d
Returns
ToString()
Returns the fully qualified type name of this instance.
public override readonly string ToString()
Returns
- string
The fully qualified type name.
Operators
operator +(Vec2d, Vec2d)
public static Vec2d operator +(Vec2d a, Vec2d b)
Parameters
Returns
operator /(Vec2d, double)
public static Vec2d operator /(Vec2d a, double alpha)
Parameters
Returns
operator ==(Vec2d, Vec2d)
public static bool operator ==(Vec2d a, Vec2d b)
Parameters
Returns
operator !=(Vec2d, Vec2d)
public static bool operator !=(Vec2d a, Vec2d b)
Parameters
Returns
operator *(Vec2d, double)
public static Vec2d operator *(Vec2d a, double alpha)
Parameters
Returns
operator -(Vec2d, Vec2d)
public static Vec2d operator -(Vec2d a, Vec2d b)