Struct Vec4s
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
4-Tuple of short (System.Int16)
[Serializable]
[SuppressMessage("Design", "CA1051: Do not declare visible instance fields")]
public struct Vec4s : IVec<Vec4s, short>, IVec, IEquatable<Vec4s>
- Implements
- Inherited Members
Constructors
Vec4s(short, short, short, short)
Initializer
public Vec4s(short item0, short item1, short item2, short item3)
Parameters
Fields
Item0
The value of the first component of this object.
public short Item0
Field Value
Item1
The value of the second component of this object.
public short Item1
Field Value
Item2
The value of the third component of this object.
public short Item2
Field Value
Item3
The value of the fourth component of this object.
public short Item3
Field Value
Properties
this[int]
Indexer
public short this[int i] { readonly get; set; }
Parameters
iint
Property Value
Methods
Add(Vec4s)
this + other
public readonly Vec4s Add(Vec4s other)
Parameters
otherVec4s
Returns
Deconstruct(out short, out short, out short, out short)
Deconstructing a Vector
public readonly void Deconstruct(out short item0, out short item1, out short item2, out short item3)
Parameters
Divide(double)
this / alpha
public readonly Vec4s Divide(double alpha)
Parameters
alphadouble
Returns
Equals(Vec4s)
Indicates whether the current object is equal to another object of the same type.
public readonly bool Equals(Vec4s other)
Parameters
otherVec4sAn 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 Vec4s Multiply(double alpha)
Parameters
alphadouble
Returns
Subtract(Vec4s)
this - other
public readonly Vec4s Subtract(Vec4s other)
Parameters
otherVec4s
Returns
ToString()
Returns the fully qualified type name of this instance.
public override readonly string ToString()
Returns
- string
The fully qualified type name.
ToVec4d()
public Vec4d ToVec4d()
Returns
ToVec4f()
public Vec4f ToVec4f()
Returns
ToVec4i()
public Vec4i ToVec4i()
Returns
ToVec4w()
public Vec4w ToVec4w()
Returns
Operators
operator +(Vec4s, Vec4s)
public static Vec4s operator +(Vec4s a, Vec4s b)
Parameters
Returns
operator /(Vec4s, double)
public static Vec4s operator /(Vec4s a, double alpha)
Parameters
Returns
operator ==(Vec4s, Vec4s)
public static bool operator ==(Vec4s a, Vec4s b)
Parameters
Returns
operator !=(Vec4s, Vec4s)
public static bool operator !=(Vec4s a, Vec4s b)
Parameters
Returns
operator *(Vec4s, double)
public static Vec4s operator *(Vec4s a, double alpha)
Parameters
Returns
operator -(Vec4s, Vec4s)
public static Vec4s operator -(Vec4s a, Vec4s b)