Table of Contents

Struct Vec2s

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

2-Tuple of short (System.Int16)

public record struct Vec2s : IEquatable<Vec2s>
Implements
Inherited Members

Constructors

Vec2s(short, short)

2-Tuple of short (System.Int16)

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(Vec2s)

this + other

AsSpan()

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

Divide(double)

this / alpha

Multiply(double)

this * alpha

Subtract(Vec2s)

this - other

ToVec2d()
ToVec2f()
ToVec2i()
ToVec2w()

Operators

operator +(Vec2s, Vec2s)
operator /(Vec2s, double)
operator *(Vec2s, double)
operator -(Vec2s, Vec2s)
operator -(Vec2s)