Table of Contents

Struct Vec4w

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

4-Tuple of ushort (System.UInt16)

[Serializable]
[SuppressMessage("Design", "CA1051: Do not declare visible instance fields")]
public struct Vec4w : IVec<Vec4w, ushort>, IVec, IEquatable<Vec4w>
Implements
Inherited Members

Constructors

Vec4w(ushort, ushort, ushort, ushort)

Initializer

public Vec4w(ushort item0, ushort item1, ushort item2, ushort item3)

Parameters

item0 ushort
item1 ushort
item2 ushort
item3 ushort

Fields

Item0

The value of the first component of this object.

public ushort Item0

Field Value

ushort

Item1

The value of the second component of this object.

public ushort Item1

Field Value

ushort

Item2

The value of the third component of this object.

public ushort Item2

Field Value

ushort

Item3

The value of the fourth component of this object.

public ushort Item3

Field Value

ushort

Properties

this[int]

Indexer

public ushort this[int i] { readonly get; set; }

Parameters

i int

Property Value

ushort

Methods

Add(Vec4w)

this + other

public readonly Vec4w Add(Vec4w other)

Parameters

other Vec4w

Returns

Vec4w

Deconstruct(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)

Parameters

item0 ushort
item1 ushort
item2 ushort
item3 ushort

Divide(double)

this / alpha

public readonly Vec4w Divide(double alpha)

Parameters

alpha double

Returns

Vec4w

Equals(Vec4w)

Indicates whether the current object is equal to another object of the same type.

public readonly bool Equals(Vec4w other)

Parameters

other Vec4w

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override readonly bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and 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 Vec4w Multiply(double alpha)

Parameters

alpha double

Returns

Vec4w

Subtract(Vec4w)

this - other

public readonly Vec4w Subtract(Vec4w other)

Parameters

other Vec4w

Returns

Vec4w

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

Vec4d

ToVec4f()

public Vec4f ToVec4f()

Returns

Vec4f

ToVec4i()

public Vec4i ToVec4i()

Returns

Vec4i

ToVec4s()

public Vec4s ToVec4s()

Returns

Vec4s

Operators

operator +(Vec4w, Vec4w)

public static Vec4w operator +(Vec4w a, Vec4w b)

Parameters

a Vec4w
b Vec4w

Returns

Vec4w

operator /(Vec4w, double)

public static Vec4w operator /(Vec4w a, double alpha)

Parameters

a Vec4w
alpha double

Returns

Vec4w

operator ==(Vec4w, Vec4w)

public static bool operator ==(Vec4w a, Vec4w b)

Parameters

a Vec4w
b Vec4w

Returns

bool

operator !=(Vec4w, Vec4w)

public static bool operator !=(Vec4w a, Vec4w b)

Parameters

a Vec4w
b Vec4w

Returns

bool

operator *(Vec4w, double)

public static Vec4w operator *(Vec4w a, double alpha)

Parameters

a Vec4w
alpha double

Returns

Vec4w

operator -(Vec4w, Vec4w)

public static Vec4w operator -(Vec4w a, Vec4w b)

Parameters

a Vec4w
b Vec4w

Returns

Vec4w