Table of Contents

Struct Vec2f

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

2-Tuple of float (System.Single)

public struct Vec2f : IEquatable<Vec2f>
Implements
Inherited Members

Constructors

Vec2f(float, float)

Initializer

Fields

Item0

The value of the first component of this object.

Item1

The value of the second component of this object.

Properties

this[int]

Indexer

Methods

Add(Vec2f)

this + other

AsSpan()

Returns a Span<T> over the 2 elements of this vector.

Deconstruct(out float, out float)

Deconstructing a Vector

Divide(double)

this / alpha

Equals(Vec2f)

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

Equals(object?)

Indicates whether this instance and a specified object are equal.

GetHashCode()

Returns the hash code for this instance.

Multiply(double)

this * alpha

Subtract(Vec2f)

this - other

ToString()

Returns the fully qualified type name of this instance.

ToVec2d()
ToVec2i()

Operators

operator +(Vec2f, Vec2f)
operator /(Vec2f, double)
operator ==(Vec2f, Vec2f)
operator !=(Vec2f, Vec2f)
operator *(Vec2f, double)
operator -(Vec2f, Vec2f)
operator -(Vec2f)