Show / Hide Table of Contents

Struct Vec2b

2-Tuple of byte (System.Byte)

Implements
IVec<Vec2b, System.Byte>
IVec
IEquatable<Vec2b>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public struct Vec2b : IVec<Vec2b, byte>, IVec

Constructors

| Improve this Doc View Source

Vec2b(Byte, Byte)

Initializer

Declaration
public Vec2b(byte item0, byte item1)
Parameters
Type Name Description
System.Byte item0
System.Byte item1

Fields

| Improve this Doc View Source

Item0

The value of the first component of this object.

Declaration
public byte Item0
Field Value
Type Description
System.Byte
| Improve this Doc View Source

Item1

The value of the second component of this object.

Declaration
public byte Item1
Field Value
Type Description
System.Byte

Properties

| Improve this Doc View Source

Item[Int32]

Indexer

Declaration
public byte this[int i] { readonly get; set; }
Parameters
Type Name Description
System.Int32 i
Property Value
Type Description
System.Byte

Methods

| Improve this Doc View Source

Add(Vec2b)

this + other

Declaration
public readonly Vec2b Add(Vec2b other)
Parameters
Type Name Description
Vec2b other
Returns
Type Description
Vec2b
| Improve this Doc View Source

All(Byte)

returns a Vec with all elements set to v0

Declaration
public static Vec2b All(byte v0)
Parameters
Type Name Description
System.Byte v0
Returns
Type Description
Vec2b
| Improve this Doc View Source

Deconstruct(out Byte, out Byte)

Deconstructing a Vector

Declaration
public readonly void Deconstruct(out byte item0, out byte item1)
Parameters
Type Name Description
System.Byte item0
System.Byte item1
| Improve this Doc View Source

Divide(Double)

this / alpha

Declaration
public readonly Vec2b Divide(double alpha)
Parameters
Type Name Description
System.Double alpha
Returns
Type Description
Vec2b
| Improve this Doc View Source

Equals(Vec2b)

Declaration
public readonly bool Equals(Vec2b other)
Parameters
Type Name Description
Vec2b other
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Equals(Object)

Declaration
public override readonly bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean
Overrides
System.ValueType.Equals(System.Object)
| Improve this Doc View Source

GetHashCode()

Declaration
public override readonly int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.ValueType.GetHashCode()
| Improve this Doc View Source

Multiply(Double)

this * alpha

Declaration
public readonly Vec2b Multiply(double alpha)
Parameters
Type Name Description
System.Double alpha
Returns
Type Description
Vec2b
| Improve this Doc View Source

Subtract(Vec2b)

this - other

Declaration
public readonly Vec2b Subtract(Vec2b other)
Parameters
Type Name Description
Vec2b other
Returns
Type Description
Vec2b
| Improve this Doc View Source

ToString()

Declaration
public override readonly string ToString()
Returns
Type Description
System.String
Overrides
System.ValueType.ToString()
| Improve this Doc View Source

ToVec2d()

Declaration
public Vec2d ToVec2d()
Returns
Type Description
Vec2d
| Improve this Doc View Source

ToVec2f()

Declaration
public Vec2f ToVec2f()
Returns
Type Description
Vec2f
| Improve this Doc View Source

ToVec2i()

Declaration
public Vec2i ToVec2i()
Returns
Type Description
Vec2i
| Improve this Doc View Source

ToVec2s()

Declaration
public Vec2s ToVec2s()
Returns
Type Description
Vec2s
| Improve this Doc View Source

ToVec2w()

Declaration
public Vec2w ToVec2w()
Returns
Type Description
Vec2w

Operators

| Improve this Doc View Source

Addition(Vec2b, Vec2b)

Declaration
public static Vec2b operator +(Vec2b a, Vec2b b)
Parameters
Type Name Description
Vec2b a
Vec2b b
Returns
Type Description
Vec2b
| Improve this Doc View Source

Division(Vec2b, Double)

Declaration
public static Vec2b operator /(Vec2b a, double alpha)
Parameters
Type Name Description
Vec2b a
System.Double alpha
Returns
Type Description
Vec2b
| Improve this Doc View Source

Equality(Vec2b, Vec2b)

Declaration
public static bool operator ==(Vec2b a, Vec2b b)
Parameters
Type Name Description
Vec2b a
Vec2b b
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Inequality(Vec2b, Vec2b)

Declaration
public static bool operator !=(Vec2b a, Vec2b b)
Parameters
Type Name Description
Vec2b a
Vec2b b
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Multiply(Vec2b, Double)

Declaration
public static Vec2b operator *(Vec2b a, double alpha)
Parameters
Type Name Description
Vec2b a
System.Double alpha
Returns
Type Description
Vec2b
| Improve this Doc View Source

Subtraction(Vec2b, Vec2b)

Declaration
public static Vec2b operator -(Vec2b a, Vec2b b)
Parameters
Type Name Description
Vec2b a
Vec2b b
Returns
Type Description
Vec2b

Implements

IVec<TSelf, TElem>
IVec
IEquatable<>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX