Struct Vec6i
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
6-Tuple of int (System.Int32)
[Serializable]
[SuppressMessage("Design", "CA1051: Do not declare visible instance fields")]
public struct Vec6i : IVec<Vec6i, int>, IVec, IEquatable<Vec6i>
- Implements
- Inherited Members
Constructors
Vec6i(int, int, int, int, int, int)
Initializer
public Vec6i(int item0, int item1, int item2, int item3, int item4, int item5)
Parameters
Fields
Item0
The value of the first component of this object.
public int Item0
Field Value
Item1
The value of the second component of this object.
public int Item1
Field Value
Item2
The value of the third component of this object.
public int Item2
Field Value
Item3
The value of the fourth component of this object.
public int Item3
Field Value
Item4
The value of the fourth component of this object.
public int Item4
Field Value
Item5
The value of the sixth component of this object.
public int Item5
Field Value
Properties
this[int]
Indexer
public int this[int i] { readonly get; set; }
Parameters
iint
Property Value
Methods
Add(Vec6i)
this + other
public readonly Vec6i Add(Vec6i other)
Parameters
otherVec6i
Returns
Deconstruct(out int, out int, out int, out int, out int, out int)
Deconstructing a Vector
public readonly void Deconstruct(out int item0, out int item1, out int item2, out int item3, out int item4, out int item5)
Parameters
Divide(double)
this / alpha
public readonly Vec6i Divide(double alpha)
Parameters
alphadouble
Returns
Equals(Vec6i)
Indicates whether the current object is equal to another object of the same type.
public readonly bool Equals(Vec6i other)
Parameters
otherVec6iAn 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 Vec6i Multiply(double alpha)
Parameters
alphadouble
Returns
Subtract(Vec6i)
this - other
public readonly Vec6i Subtract(Vec6i other)
Parameters
otherVec6i
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
Operators
operator +(Vec6i, Vec6i)
public static Vec6i operator +(Vec6i a, Vec6i b)
Parameters
Returns
operator /(Vec6i, double)
public static Vec6i operator /(Vec6i a, double alpha)
Parameters
Returns
operator ==(Vec6i, Vec6i)
public static bool operator ==(Vec6i a, Vec6i b)
Parameters
Returns
operator !=(Vec6i, Vec6i)
public static bool operator !=(Vec6i a, Vec6i b)
Parameters
Returns
operator *(Vec6i, double)
public static Vec6i operator *(Vec6i a, double alpha)
Parameters
Returns
operator -(Vec6i, Vec6i)
public static Vec6i operator -(Vec6i a, Vec6i b)