Table of Contents

Struct Vec4i

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

4-Tuple of int (System.Int32)

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

Constructors

Vec4i(int, int, int, int)

Initializer

public Vec4i(int item0, int item1, int item2, int item3)

Parameters

item0 int
item1 int
item2 int
item3 int

Fields

Item0

The value of the first component of this object.

public int Item0

Field Value

int

Item1

The value of the second component of this object.

public int Item1

Field Value

int

Item2

The value of the third component of this object.

public int Item2

Field Value

int

Item3

The value of the fourth component of this object.

public int Item3

Field Value

int

Properties

this[int]

Indexer

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

Parameters

i int

Property Value

int

Methods

Add(Vec4i)

this + other

public readonly Vec4i Add(Vec4i other)

Parameters

other Vec4i

Returns

Vec4i

Deconstruct(out int, out int, out int, out int)

Deconstructing a Vector

public readonly void Deconstruct(out int item0, out int item1, out int item2, out int item3)

Parameters

item0 int
item1 int
item2 int
item3 int

Divide(double)

this / alpha

public readonly Vec4i Divide(double alpha)

Parameters

alpha double

Returns

Vec4i

Equals(Vec4i)

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

public readonly bool Equals(Vec4i other)

Parameters

other Vec4i

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

Parameters

alpha double

Returns

Vec4i

Subtract(Vec4i)

this - other

public readonly Vec4i Subtract(Vec4i other)

Parameters

other Vec4i

Returns

Vec4i

ToString()

Returns the fully qualified type name of this instance.

public override readonly string ToString()

Returns

string

The fully qualified type name.

ToVec4d()

public Vec4d ToVec4d()

Returns

Vec4d

ToVec4f()

public Vec4f ToVec4f()

Returns

Vec4f

Operators

operator +(Vec4i, Vec4i)

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

Parameters

a Vec4i
b Vec4i

Returns

Vec4i

operator /(Vec4i, double)

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

Parameters

a Vec4i
alpha double

Returns

Vec4i

operator ==(Vec4i, Vec4i)

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

Parameters

a Vec4i
b Vec4i

Returns

bool

operator !=(Vec4i, Vec4i)

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

Parameters

a Vec4i
b Vec4i

Returns

bool

operator *(Vec4i, double)

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

Parameters

a Vec4i
alpha double

Returns

Vec4i

operator -(Vec4i, Vec4i)

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

Parameters

a Vec4i
b Vec4i

Returns

Vec4i