Struct MCvScalar
Managed structure equivalent to CvScalar
public struct MCvScalar : ICodeGenerable, IEquatable<MCvScalar>
- Implements
- Inherited Members
Constructors
MCvScalar(double)
Create a new MCvScalar structure using the specific values
public MCvScalar(double v0)
Parameters
v0
doublev0
MCvScalar(double, double)
Create a new MCvScalar structure using the specific values
public MCvScalar(double v0, double v1)
Parameters
MCvScalar(double, double, double)
Create a new MCvScalar structure using the specific values
public MCvScalar(double v0, double v1, double v2)
Parameters
MCvScalar(double, double, double, double)
Create a new MCvScalar structure using the specific values
public MCvScalar(double v0, double v1, double v2, double v3)
Parameters
Fields
V0
The scalar value
public double V0
Field Value
V1
The scalar value
public double V1
Field Value
V2
The scalar value
public double V2
Field Value
V3
The scalar value
public double V3
Field Value
Methods
Equals(MCvScalar)
Return true if the two MCvScalar equals
public bool Equals(MCvScalar other)
Parameters
other
MCvScalarThe other MCvScalar to compare with
Returns
- bool
true if the two MCvScalar equals
ToArray()
The scalar values as a vector (of size 4)
public double[] ToArray()
Returns
- double[]
The scalar values as an array
ToCode(ProgrammingLanguage)
Return the code to generate this MCvScalar from specific language
public string ToCode(ProgrammingLanguage language)
Parameters
language
ProgrammingLanguageThe programming language to generate code from
Returns
- string
The code to generate this MCvScalar from specific language