Show / Hide Table of Contents

Struct Vec2w

2-Tuple of ushort (System.UInt16)

Implements
IVec<Vec2w, System.UInt16>
IVec
IEquatable<Vec2w>
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 Vec2w : IVec<Vec2w, ushort>, IVec

Constructors

| Improve this Doc View Source

Vec2w(UInt16, UInt16)

Initializer

Declaration
public Vec2w(ushort item0, ushort item1)
Parameters
Type Name Description
System.UInt16 item0
System.UInt16 item1

Fields

| Improve this Doc View Source

Item0

The value of the first component of this object.

Declaration
public ushort Item0
Field Value
Type Description
System.UInt16
| Improve this Doc View Source

Item1

The value of the second component of this object.

Declaration
public ushort Item1
Field Value
Type Description
System.UInt16

Properties

| Improve this Doc View Source

Item[Int32]

Indexer

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

Methods

| Improve this Doc View Source

Add(Vec2w)

this + other

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

Deconstruct(out UInt16, out UInt16)

Deconstructing a Vector

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

Divide(Double)

this / alpha

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

Equals(Vec2w)

Declaration
public readonly bool Equals(Vec2w other)
Parameters
Type Name Description
Vec2w 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 Vec2w Multiply(double alpha)
Parameters
Type Name Description
System.Double alpha
Returns
Type Description
Vec2w
| Improve this Doc View Source

Subtract(Vec2w)

this - other

Declaration
public readonly Vec2w Subtract(Vec2w other)
Parameters
Type Name Description
Vec2w other
Returns
Type Description
Vec2w
| 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

Operators

| Improve this Doc View Source

Addition(Vec2w, Vec2w)

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

Division(Vec2w, Double)

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

Equality(Vec2w, Vec2w)

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

Inequality(Vec2w, Vec2w)

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

Multiply(Vec2w, Double)

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

Subtraction(Vec2w, Vec2w)

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

Implements

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