CVB.Net 15.0
Point3Dcf Struct Reference

Multi-purpose 3D float vector struct with confidence value. More...

Inherits IEquatable< Point3Dcf >.

Public Member Functions

 Point3Dcf (float x, float y, float z)
 Constructor. More...
 
 Point3Dcf (float x, float y, float z, float confidence)
 Constructor. More...
 
override bool Equals (object obj)
 Indicates whether this instance and the given obj are equal. More...
 
bool Equals (Point3Dcf obj)
 Indicates whether this instance and the given obj are equal. More...
 
override int GetHashCode ()
 Returns the hash code for this instance. More...
 
Point3Df ToPoint3Df ()
 Converts this point to a Point3Df. More...
 
override string ToString ()
 String conversion. More...
 
Point3Df CrossProduct (Point3Dcf v2)
 Calculates the crossproduct of this vector and the given v2 . More...
 

Static Public Member Functions

static bool operator== (Point3Dcf lhs, Point3Dcf rhs)
 Equality comparison operator. More...
 
static bool operator!= (Point3Dcf lhs, Point3Dcf rhs)
 Inequality comparison operator. More...
 
static Point3Dcf operator- (Point3Dcf lhs, Point3Dcf rhs)
 Subtraction operator. More...
 
static Point3Dcf operator+ (Point3Dcf lhs, Point3Dcf rhs)
 Addition operator. More...
 

Properties

float X [get, set]
 X-coordinate.
 
float Y [get, set]
 Y-coordinate.
 
float Z [get, set]
 Z-coordinate.
 
float C [get, set]
 Confidence-component. More...
 
float this[int row] [get, set]
 Index access. More...
 

Detailed Description

Multi-purpose 3D float vector struct with confidence value.

Constructor & Destructor Documentation

◆ Point3Dcf() [1/2]

Point3Dcf ( float  x,
float  y,
float  z 
)

Constructor.

Parameters
xX-coordinate.
yY-Coordinate.
zZ-coordinate

◆ Point3Dcf() [2/2]

Point3Dcf ( float  x,
float  y,
float  z,
float  confidence 
)

Constructor.

Parameters
xX-coordinate.
yY-Coordinate.
zZ-coordinate
confidenceConfidence-component (0 is invalid; 1 is 100% valid).

Member Function Documentation

◆ CrossProduct()

Point3Df CrossProduct ( Point3Dcf  v2)

Calculates the crossproduct of this vector and the given v2 .

Parameters
v2Vector to build crossproduct with.
Returns
Crossproduct of this vector and v2 .

◆ Equals() [1/2]

override bool Equals ( object  obj)

Indicates whether this instance and the given obj are equal.

Parameters
objObject to compare to.
Returns
True if obj and this instance are the same type and represent the same value; otherwise, false.

◆ Equals() [2/2]

bool Equals ( Point3Dcf  obj)

Indicates whether this instance and the given obj are equal.

Parameters
objObject to compare to.
Returns
True if obj and this instance represent the same value; otherwise, false.

◆ GetHashCode()

override int GetHashCode ( )

Returns the hash code for this instance.

Returns
A 32-bit signed integer that is the hash code for this instance.

◆ operator!=()

static bool operator!= ( Point3Dcf  lhs,
Point3Dcf  rhs 
)
static

Inequality comparison operator.

Parameters
lhsLeft hand side operand.
rhsRight hand side operand.
Returns
True if lhs != rhs , otherwise false.

◆ operator+()

static Point3Dcf operator+ ( Point3Dcf  lhs,
Point3Dcf  rhs 
)
static

Addition operator.

Parameters
lhsLeft hand side operand.
rhsRight hand side operand.
Returns
Addition of lhs and rhs .

◆ operator-()

static Point3Dcf operator- ( Point3Dcf  lhs,
Point3Dcf  rhs 
)
static

Subtraction operator.

Parameters
lhsLeft hand side operand.
rhsRight hand side operand.
Returns
Difference of lhs and rhs .

◆ operator==()

static bool operator== ( Point3Dcf  lhs,
Point3Dcf  rhs 
)
static

Equality comparison operator.

Parameters
lhsLeft hand side operand.
rhsRight hand side operand.
Returns
True if lhs == rhs , otherwise false.

◆ ToPoint3Df()

Point3Df ToPoint3Df ( )

Converts this point to a Point3Df.

Returns
New Point3Df object.

◆ ToString()

override string ToString ( )

String conversion.

Returns
string representation of this PointD

Property Documentation

◆ C

float C
getset

Confidence-component.

0 means invalid; 1 means 100% valid.

◆ this[int row]

float this[int row]
getset

Index access.

Parameters
rowThe element to access (0 is X).
Returns