Struct Vec6w
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
4-Tuple of ushort (System.UInt16)
[Serializable]
[SuppressMessage("Design", "CA1051: Do not declare visible instance fields")]
public struct Vec6w : IVec<Vec6w, ushort>, IVec, IEquatable<Vec6w>
- Implements
- Inherited Members
Constructors
Vec6w(ushort, ushort, ushort, ushort, ushort, ushort)
Initializer
public Vec6w(ushort item0, ushort item1, ushort item2, ushort item3, ushort item4, ushort item5)
Parameters
Fields
Item0
The value of the first component of this object.
public ushort Item0
Field Value
Item1
The value of the second component of this object.
public ushort Item1
Field Value
Item2
The value of the third component of this object.
public ushort Item2
Field Value
Item3
The value of the fourth component of this object.
public ushort Item3
Field Value
Item4
The value of the fifth component of this object.
public ushort Item4
Field Value
Item5
The value of the sixth component of this object.
public ushort Item5
Field Value
Properties
this[int]
Indexer
public ushort this[int i] { readonly get; set; }
Parameters
iint
Property Value
Methods
Add(Vec6w)
this + other
public readonly Vec6w Add(Vec6w other)
Parameters
otherVec6w
Returns
Deconstruct(out ushort, out ushort, out ushort, out ushort, out ushort, out ushort)
Deconstructing a Vector
public readonly void Deconstruct(out ushort item0, out ushort item1, out ushort item2, out ushort item3, out ushort item4, out ushort item5)
Parameters
Divide(double)
this / alpha
public readonly Vec6w Divide(double alpha)
Parameters
alphadouble
Returns
Equals(Vec6w)
Indicates whether the current object is equal to another object of the same type.
public readonly bool Equals(Vec6w other)
Parameters
otherVec6wAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override readonly bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
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 Vec6w Multiply(double alpha)
Parameters
alphadouble
Returns
Subtract(Vec6w)
this - other
public readonly Vec6w Subtract(Vec6w other)
Parameters
otherVec6w
Returns
ToString()
Returns the fully qualified type name of this instance.
public override readonly string ToString()
Returns
- string
The fully qualified type name.
ToVec6d()
public Vec6d ToVec6d()
Returns
ToVec6f()
public Vec6f ToVec6f()
Returns
ToVec6i()
public Vec6i ToVec6i()
Returns
ToVec6s()
public Vec6s ToVec6s()
Returns
Operators
operator +(Vec6w, Vec6w)
public static Vec6w operator +(Vec6w a, Vec6w b)
Parameters
Returns
operator /(Vec6w, double)
public static Vec6w operator /(Vec6w a, double alpha)
Parameters
Returns
operator ==(Vec6w, Vec6w)
public static bool operator ==(Vec6w a, Vec6w b)
Parameters
Returns
operator !=(Vec6w, Vec6w)
public static bool operator !=(Vec6w a, Vec6w b)
Parameters
Returns
operator *(Vec6w, double)
public static Vec6w operator *(Vec6w a, double alpha)
Parameters
Returns
operator -(Vec6w, Vec6w)
public static Vec6w operator -(Vec6w a, Vec6w b)