CVB.Net 15.1
Loading...
Searching...
No Matches

Multi-purpose homogeneous 3D float vector struct. More...

Public Member Functions

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

Static Public Member Functions

static Point3Dhf operator+ (Point3Dhf lhs, Point3Dhf rhs)
 Addition operator.
 
static Point3Dhf operator- (Point3Dhf lhs, Point3Dhf rhs)
 Subtraction operator.
 
static float operator* (Point3Dhf lhs, Point3Dhf rhs)
 Multiplication operator. Gets the inner product of the given lhs and rhs .
 
static Point3Dhf operator* (float lhs, Point3Dhf rhs)
 Multiplication operator.
 
static Point3Dhf operator* (Point3Dhf lhs, float rhs)
 Multiplication operator.
 
static Point3Dhf operator/ (Point3Dhf lhs, float rhs)
 Division operator.
 
static bool operator== (Point3Dhf lhs, Point3Dhf rhs)
 Equality comparison operator.
 
static bool operator!= (Point3Dhf lhs, Point3Dhf rhs)
 Inequality comparison operator.
 

Properties

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

Detailed Description

Multi-purpose homogeneous 3D float vector struct.

Constructor & Destructor Documentation

◆ Point3Dhf() [1/2]

Point3Dhf ( float x,
float y,
float z )

Constructor.

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

◆ Point3Dhf() [2/2]

Point3Dhf ( float x,
float y,
float z,
float w )

Constructor.

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

Member Function Documentation

◆ CrossProduct()

readonly Point3Df CrossProduct ( Point3Dhf 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 readonly 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]

readonly bool Equals ( Point3Dhf 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()

readonly 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!= ( Point3Dhf lhs,
Point3Dhf rhs )
static

Inequality comparison operator.

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

◆ operator*() [1/3]

static Point3Dhf operator* ( float lhs,
Point3Dhf rhs )
static

Multiplication operator.

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

◆ operator*() [2/3]

static Point3Dhf operator* ( Point3Dhf lhs,
float rhs )
static

Multiplication operator.

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

◆ operator*() [3/3]

static float operator* ( Point3Dhf lhs,
Point3Dhf rhs )
static

Multiplication operator. Gets the inner product of the given lhs and rhs .

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

◆ operator+()

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

Addition operator.

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

◆ operator-()

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

Subtraction operator.

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

◆ operator/()

static Point3Dhf operator/ ( Point3Dhf lhs,
float rhs )
static

Division operator.

Parameters
lhsLeft hand side operand.
rhsRight hand side operand.
Returns
Divided point.

◆ operator==()

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

Equality comparison operator.

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

◆ ToPoint3Df()

readonly Point3Df ToPoint3Df ( )

Converts this point to a Point3Df.

Returns
New Point3Df object.

◆ ToString()

readonly override string ToString ( )

String conversion.

Returns
string representation of this PointD

Property Documentation

◆ this[int row]

float this[int row]
getset

Index access.

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