Table of Contents

Struct Vec6f

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

6-Tuple of float (System.Single)

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

Constructors

Vec6f(float, float, float, float, float, float)

Initializer

public Vec6f(float item0, float item1, float item2, float item3, float item4, float item5)

Parameters

item0 float
item1 float
item2 float
item3 float
item4 float
item5 float

Fields

Item0

The value of the first component of this object.

public float Item0

Field Value

float

Item1

The value of the second component of this object.

public float Item1

Field Value

float

Item2

The value of the third component of this object.

public float Item2

Field Value

float

Item3

The value of the fourth component of this object.

public float Item3

Field Value

float

Item4

The value of the fifth component of this object.

public float Item4

Field Value

float

Item5

The value of the sixth component of this object.

public float Item5

Field Value

float

Properties

this[int]

Indexer

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

Parameters

i int

Property Value

float

Methods

Add(Vec6f)

this + other

public readonly Vec6f Add(Vec6f other)

Parameters

other Vec6f

Returns

Vec6f

Deconstruct(out float, out float, out float, out float, out float, out float)

Deconstructing a Vector

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

Parameters

item0 float
item1 float
item2 float
item3 float
item4 float
item5 float

Divide(double)

this / alpha

public readonly Vec6f Divide(double alpha)

Parameters

alpha double

Returns

Vec6f

Equals(Vec6f)

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

public readonly bool Equals(Vec6f other)

Parameters

other Vec6f

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

Parameters

alpha double

Returns

Vec6f

Subtract(Vec6f)

this - other

public readonly Vec6f Subtract(Vec6f other)

Parameters

other Vec6f

Returns

Vec6f

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

ToVec6i()

public Vec6i ToVec6i()

Returns

Vec6i

Operators

operator +(Vec6f, Vec6f)

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

Parameters

a Vec6f
b Vec6f

Returns

Vec6f

operator /(Vec6f, double)

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

Parameters

a Vec6f
alpha double

Returns

Vec6f

operator ==(Vec6f, Vec6f)

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

Parameters

a Vec6f
b Vec6f

Returns

bool

operator !=(Vec6f, Vec6f)

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

Parameters

a Vec6f
b Vec6f

Returns

bool

operator *(Vec6f, double)

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

Parameters

a Vec6f
alpha double

Returns

Vec6f

operator -(Vec6f, Vec6f)

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

Parameters

a Vec6f
b Vec6f

Returns

Vec6f