Table of Contents

Struct Vec6b

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

6-Tuple of byte (System.Byte)

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

Constructors

Vec6b(byte, byte, byte, byte, byte, byte)

Initializer

public Vec6b(byte item0, byte item1, byte item2, byte item3, byte item4, byte item5)

Parameters

item0 byte
item1 byte
item2 byte
item3 byte
item4 byte
item5 byte

Fields

Item0

The value of the first component of this object.

public byte Item0

Field Value

byte

Item1

The value of the second component of this object.

public byte Item1

Field Value

byte

Item2

The value of the third component of this object.

public byte Item2

Field Value

byte

Item3

The value of the fourth component of this object.

public byte Item3

Field Value

byte

Item4

The value of the fifth component of this object.

public byte Item4

Field Value

byte

Item5

The value of the sixth component of this object.

public byte Item5

Field Value

byte

Properties

this[int]

Indexer

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

Parameters

i int

Property Value

byte

Methods

Add(Vec6b)

this + other

public readonly Vec6b Add(Vec6b other)

Parameters

other Vec6b

Returns

Vec6b

Deconstruct(out byte, out byte, out byte, out byte, out byte, out byte)

Deconstructing a Vector

public readonly void Deconstruct(out byte item0, out byte item1, out byte item2, out byte item3, out byte item4, out byte item5)

Parameters

item0 byte
item1 byte
item2 byte
item3 byte
item4 byte
item5 byte

Divide(double)

this / alpha

public readonly Vec6b Divide(double alpha)

Parameters

alpha double

Returns

Vec6b

Equals(Vec6b)

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

public readonly bool Equals(Vec6b other)

Parameters

other Vec6b

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

Parameters

alpha double

Returns

Vec6b

Subtract(Vec6b)

this - other

public readonly Vec6b Subtract(Vec6b other)

Parameters

other Vec6b

Returns

Vec6b

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

ToVec6s()

public Vec6s ToVec6s()

Returns

Vec6s

ToVec6w()

public Vec6w ToVec6w()

Returns

Vec6w

Operators

operator +(Vec6b, Vec6b)

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

Parameters

a Vec6b
b Vec6b

Returns

Vec6b

operator /(Vec6b, double)

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

Parameters

a Vec6b
alpha double

Returns

Vec6b

operator ==(Vec6b, Vec6b)

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

Parameters

a Vec6b
b Vec6b

Returns

bool

operator !=(Vec6b, Vec6b)

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

Parameters

a Vec6b
b Vec6b

Returns

bool

operator *(Vec6b, double)

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

Parameters

a Vec6b
alpha double

Returns

Vec6b

operator -(Vec6b, Vec6b)

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

Parameters

a Vec6b
b Vec6b

Returns

Vec6b