Table of Contents

Struct Vec2b

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

2-Tuple of byte (System.Byte)

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

Constructors

Vec2b(byte, byte)

2-Tuple of byte (System.Byte)

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

this + other

All(byte)

returns a Vec with all elements set to v0

AsSpan()

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

Divide(double)

this / alpha

Multiply(double)

this * alpha

Subtract(Vec2b)

this - other

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

Operators

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