Table of Contents

Struct Vec3f

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

3-Tuple of float (System.Single)

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

Constructors

Vec3f(float, float, float)

Initializer

public Vec3f(float item0, float item1, float item2)

Parameters

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

Properties

this[int]

Indexer

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

Parameters

i int

Property Value

float

Methods

Add(Vec3f)

this + other

public readonly Vec3f Add(Vec3f other)

Parameters

other Vec3f

Returns

Vec3f

Deconstruct(out float, out float, out float)

Deconstructing a Vector

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

Parameters

item0 float
item1 float
item2 float

Divide(double)

this / alpha

public readonly Vec3f Divide(double alpha)

Parameters

alpha double

Returns

Vec3f

Equals(Vec3f)

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

public readonly bool Equals(Vec3f other)

Parameters

other Vec3f

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

Parameters

alpha double

Returns

Vec3f

Subtract(Vec3f)

this - other

public readonly Vec3f Subtract(Vec3f other)

Parameters

other Vec3f

Returns

Vec3f

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

ToVec3i()

public Vec3i ToVec3i()

Returns

Vec3i

Operators

operator +(Vec3f, Vec3f)

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

Parameters

a Vec3f
b Vec3f

Returns

Vec3f

operator /(Vec3f, double)

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

Parameters

a Vec3f
alpha double

Returns

Vec3f

operator ==(Vec3f, Vec3f)

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

Parameters

a Vec3f
b Vec3f

Returns

bool

operator !=(Vec3f, Vec3f)

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

Parameters

a Vec3f
b Vec3f

Returns

bool

operator *(Vec3f, double)

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

Parameters

a Vec3f
alpha double

Returns

Vec3f

operator -(Vec3f, Vec3f)

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

Parameters

a Vec3f
b Vec3f

Returns

Vec3f