Table of Contents

Struct Vec3d

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

3-Tuple of double (System.Double)

[Serializable]
public struct Vec3d : IVec<Vec3d, double>, IVec, IEquatable<Vec3d>
Implements
Inherited Members

Constructors

Vec3d(double, double, double)

Initializer

public Vec3d(double item0, double item1, double item2)

Parameters

item0 double
item1 double
item2 double

Fields

Item0

The value of the first component of this object.

public double Item0

Field Value

double

Item1

The value of the second component of this object.

public double Item1

Field Value

double

Item2

The value of the third component of this object.

public double Item2

Field Value

double

Properties

this[int]

Indexer

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

Parameters

i int

Property Value

double

Methods

Add(Vec3d)

this + other

public readonly Vec3d Add(Vec3d other)

Parameters

other Vec3d

Returns

Vec3d

Deconstruct(out double, out double, out double)

Deconstructing a Vector

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

Parameters

item0 double
item1 double
item2 double

Divide(double)

this / alpha

public readonly Vec3d Divide(double alpha)

Parameters

alpha double

Returns

Vec3d

Equals(Vec3d)

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

public readonly bool Equals(Vec3d other)

Parameters

other Vec3d

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

Parameters

alpha double

Returns

Vec3d

Subtract(Vec3d)

this - other

public readonly Vec3d Subtract(Vec3d other)

Parameters

other Vec3d

Returns

Vec3d

ToString()

Returns the fully qualified type name of this instance.

public override readonly string ToString()

Returns

string

The fully qualified type name.

Operators

operator +(Vec3d, Vec3d)

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

Parameters

a Vec3d
b Vec3d

Returns

Vec3d

operator /(Vec3d, double)

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

Parameters

a Vec3d
alpha double

Returns

Vec3d

operator ==(Vec3d, Vec3d)

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

Parameters

a Vec3d
b Vec3d

Returns

bool

operator !=(Vec3d, Vec3d)

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

Parameters

a Vec3d
b Vec3d

Returns

bool

operator *(Vec3d, double)

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

Parameters

a Vec3d
alpha double

Returns

Vec3d

operator -(Vec3d, Vec3d)

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

Parameters

a Vec3d
b Vec3d

Returns

Vec3d