Table of Contents

Struct Vec2d

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

2-Tuple of double (System.Double)

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

Constructors

Vec2d(double, double)

Initializer

public Vec2d(double item0, double item1)

Parameters

item0 double
item1 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

Properties

this[int]

Indexer

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

Parameters

i int

Property Value

double

Methods

Add(Vec2d)

this + other

public readonly Vec2d Add(Vec2d other)

Parameters

other Vec2d

Returns

Vec2d

Deconstruct(out double, out double)

Deconstructing a Vector

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

Parameters

item0 double
item1 double

Divide(double)

this / alpha

public readonly Vec2d Divide(double alpha)

Parameters

alpha double

Returns

Vec2d

Equals(Vec2d)

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

public readonly bool Equals(Vec2d other)

Parameters

other Vec2d

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

public override readonly bool Equals(object? obj)

Parameters

obj object

Returns

bool

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

Parameters

alpha double

Returns

Vec2d

Subtract(Vec2d)

this - other

public readonly Vec2d Subtract(Vec2d other)

Parameters

other Vec2d

Returns

Vec2d

ToString()

Returns the fully qualified type name of this instance.

public override readonly string ToString()

Returns

string

The fully qualified type name.

Operators

operator +(Vec2d, Vec2d)

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

Parameters

a Vec2d
b Vec2d

Returns

Vec2d

operator /(Vec2d, double)

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

Parameters

a Vec2d
alpha double

Returns

Vec2d

operator ==(Vec2d, Vec2d)

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

Parameters

a Vec2d
b Vec2d

Returns

bool

operator !=(Vec2d, Vec2d)

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

Parameters

a Vec2d
b Vec2d

Returns

bool

operator *(Vec2d, double)

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

Parameters

a Vec2d
alpha double

Returns

Vec2d

operator -(Vec2d, Vec2d)

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

Parameters

a Vec2d
b Vec2d

Returns

Vec2d