Show / Hide Table of Contents

Struct Vec4f

4-Tuple of float (System.Single)

Implements
IVec<Vec4f, System.Single>
IVec
IEquatable<Vec4f>
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 Vec4f : IVec<Vec4f, float>, IVec

Constructors

| Improve this Doc View Source

Vec4f(Single, Single, Single, Single)

Initializer

Declaration
public Vec4f(float item0, float item1, float item2, float item3)
Parameters
Type Name Description
System.Single item0
System.Single item1
System.Single item2
System.Single item3

Fields

| Improve this Doc View Source

Item0

The value of the first component of this object.

Declaration
public float Item0
Field Value
Type Description
System.Single
| Improve this Doc View Source

Item1

The value of the second component of this object.

Declaration
public float Item1
Field Value
Type Description
System.Single
| Improve this Doc View Source

Item2

The value of the third component of this object.

Declaration
public float Item2
Field Value
Type Description
System.Single
| Improve this Doc View Source

Item3

The value of the fourth component of this object.

Declaration
public float Item3
Field Value
Type Description
System.Single

Properties

| Improve this Doc View Source

Item[Int32]

Indexer

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

Methods

| Improve this Doc View Source

Add(Vec4f)

this + other

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

Deconstruct(out Single, out Single, out Single, out Single)

Deconstructing a Vector

Declaration
public readonly void Deconstruct(out float item0, out float item1, out float item2, out float item3)
Parameters
Type Name Description
System.Single item0
System.Single item1
System.Single item2
System.Single item3
| Improve this Doc View Source

Divide(Double)

this / alpha

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

Equals(Vec4f)

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

Subtract(Vec4f)

this - other

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

ToVec4d()

Declaration
public Vec4d ToVec4d()
Returns
Type Description
Vec4d
| Improve this Doc View Source

ToVec4i()

Declaration
public Vec4i ToVec4i()
Returns
Type Description
Vec4i

Operators

| Improve this Doc View Source

Addition(Vec4f, Vec4f)

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

Division(Vec4f, Double)

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

Equality(Vec4f, Vec4f)

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

Inequality(Vec4f, Vec4f)

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

Multiply(Vec4f, Double)

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

Subtraction(Vec4f, Vec4f)

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

Implements

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