Table of Contents

Struct Vec6s

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

6-Tuple of short (System.Int16)

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

Constructors

Vec6s(short, short, short, short, short, short)

Initializer

public Vec6s(short item0, short item1, short item2, short item3, short item4, short item5)

Parameters

item0 short
item1 short
item2 short
item3 short
item4 short
item5 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

Item3

The value of the fourth component of this object.

public short Item3

Field Value

short

Item4

The value of the fifth component of this object.

public short Item4

Field Value

short

Item5

The value of the sixth component of this object.

public short Item5

Field Value

short

Properties

this[int]

Indexer

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

Parameters

i int

Property Value

short

Methods

Add(Vec6s)

this + other

public readonly Vec6s Add(Vec6s other)

Parameters

other Vec6s

Returns

Vec6s

Deconstruct(out short, out short, 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, out short item4, out short item5)

Parameters

item0 short
item1 short
item2 short
item3 short
item4 short
item5 short

Divide(double)

this / alpha

public readonly Vec6s Divide(double alpha)

Parameters

alpha double

Returns

Vec6s

Equals(Vec6s)

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

public readonly bool Equals(Vec6s other)

Parameters

other Vec6s

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

Parameters

alpha double

Returns

Vec6s

Subtract(Vec6s)

this - other

public readonly Vec6s Subtract(Vec6s other)

Parameters

other Vec6s

Returns

Vec6s

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

Vec6d

ToVec6f()

public Vec6f ToVec6f()

Returns

Vec6f

ToVec6i()

public Vec6i ToVec6i()

Returns

Vec6i

ToVec6w()

public Vec6w ToVec6w()

Returns

Vec6w

Operators

operator +(Vec6s, Vec6s)

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

Parameters

a Vec6s
b Vec6s

Returns

Vec6s

operator /(Vec6s, double)

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

Parameters

a Vec6s
alpha double

Returns

Vec6s

operator ==(Vec6s, Vec6s)

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

Parameters

a Vec6s
b Vec6s

Returns

bool

operator !=(Vec6s, Vec6s)

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

Parameters

a Vec6s
b Vec6s

Returns

bool

operator *(Vec6s, double)

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

Parameters

a Vec6s
alpha double

Returns

Vec6s

operator -(Vec6s, Vec6s)

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

Parameters

a Vec6s
b Vec6s

Returns

Vec6s