Table of Contents

Struct Vec3w

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

3-Tuple of ushort (System.UInt16)

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

Constructors

Vec3w(ushort, ushort, ushort)

Initializer

public Vec3w(ushort item0, ushort item1, ushort item2)

Parameters

item0 ushort
item1 ushort
item2 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

Properties

this[int]

Indexer

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

Parameters

i int

Property Value

ushort

Methods

Add(Vec3w)

this + other

public readonly Vec3w Add(Vec3w other)

Parameters

other Vec3w

Returns

Vec3w

Deconstruct(out ushort, out ushort, out ushort)

Deconstructing a Vector

public readonly void Deconstruct(out ushort item0, out ushort item1, out ushort item2)

Parameters

item0 ushort
item1 ushort
item2 ushort

Divide(double)

this / alpha

public readonly Vec3w Divide(double alpha)

Parameters

alpha double

Returns

Vec3w

Equals(Vec3w)

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

public readonly bool Equals(Vec3w other)

Parameters

other Vec3w

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 Vec3w Multiply(double alpha)

Parameters

alpha double

Returns

Vec3w

Subtract(Vec3w)

this - other

public readonly Vec3w Subtract(Vec3w other)

Parameters

other Vec3w

Returns

Vec3w

ToString()

Returns the fully qualified type name of this instance.

public override readonly string ToString()

Returns

string

The fully qualified type name.

ToVec3d()

public Vec3d ToVec3d()

Returns

Vec3d

ToVec3f()

public Vec3f ToVec3f()

Returns

Vec3f

ToVec3i()

public Vec3i ToVec3i()

Returns

Vec3i

ToVec3s()

public Vec3s ToVec3s()

Returns

Vec3s

Operators

operator +(Vec3w, Vec3w)

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

Parameters

a Vec3w
b Vec3w

Returns

Vec3w

operator /(Vec3w, double)

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

Parameters

a Vec3w
alpha double

Returns

Vec3w

operator ==(Vec3w, Vec3w)

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

Parameters

a Vec3w
b Vec3w

Returns

bool

operator !=(Vec3w, Vec3w)

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

Parameters

a Vec3w
b Vec3w

Returns

bool

operator *(Vec3w, double)

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

Parameters

a Vec3w
alpha double

Returns

Vec3w

operator -(Vec3w, Vec3w)

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

Parameters

a Vec3w
b Vec3w

Returns

Vec3w