Table of Contents

Struct Vec3s

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

3-Tuple of short (System.Int16)

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

Constructors

Vec3s(short, short, short)

Initializer

public Vec3s(short item0, short item1, short item2)

Parameters

item0 short
item1 short
item2 short

Fields

Item0

The value of the first component of this object.

public short Item0

Field Value

short

Item1

The value of the second component of this object.

public short Item1

Field Value

short

Item2

The value of the third component of this object.

public short Item2

Field Value

short

Properties

this[int]

Indexer

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

Parameters

i int

Property Value

short

Methods

Add(Vec3s)

this + other

public readonly Vec3s Add(Vec3s other)

Parameters

other Vec3s

Returns

Vec3s

Deconstruct(out short, out short, out short)

Deconstructing a Vector

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

Parameters

item0 short
item1 short
item2 short

Divide(double)

this / alpha

public readonly Vec3s Divide(double alpha)

Parameters

alpha double

Returns

Vec3s

Equals(Vec3s)

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

public readonly bool Equals(Vec3s other)

Parameters

other Vec3s

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

Parameters

alpha double

Returns

Vec3s

Subtract(Vec3s)

this - other

public readonly Vec3s Subtract(Vec3s other)

Parameters

other Vec3s

Returns

Vec3s

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

ToVec3w()

public Vec3w ToVec3w()

Returns

Vec3w

Operators

operator +(Vec3s, Vec3s)

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

Parameters

a Vec3s
b Vec3s

Returns

Vec3s

operator /(Vec3s, double)

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

Parameters

a Vec3s
alpha double

Returns

Vec3s

operator ==(Vec3s, Vec3s)

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

Parameters

a Vec3s
b Vec3s

Returns

bool

operator !=(Vec3s, Vec3s)

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

Parameters

a Vec3s
b Vec3s

Returns

bool

operator *(Vec3s, double)

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

Parameters

a Vec3s
alpha double

Returns

Vec3s

operator -(Vec3s, Vec3s)

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

Parameters

a Vec3s
b Vec3s

Returns

Vec3s