CVB.Net 15.0
Point3Dhd Struct Reference

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

Inherits IEquatable< Point3Dhd >.

Public Member Functions

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

Static Public Member Functions

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

Properties

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

Detailed Description

Multi-purpose homogeneous 3D double vector struct.

Constructor & Destructor Documentation

◆ Point3Dhd() [1/2]

Point3Dhd ( double  x,
double  y,
double  z 
)

Constructor.

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

◆ Point3Dhd() [2/2]

Point3Dhd ( double  x,
double  y,
double  z,
double  w 
)

Constructor.

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

Member Function Documentation

◆ CrossProduct()

Point3Dd CrossProduct ( Point3Dhd  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 ( Point3Dhd  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!= ( Point3Dhd  lhs,
Point3Dhd  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 Point3Dhd operator* ( double  lhs,
Point3Dhd  rhs 
)
static

Multiplication operator.

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

◆ operator*() [2/3]

static Point3Dhd operator* ( Point3Dhd  lhs,
double  rhs 
)
static

Multiplication operator.

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

◆ operator*() [3/3]

static double operator* ( Point3Dhd  lhs,
Point3Dhd  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 Point3Dhd operator+ ( Point3Dhd  lhs,
Point3Dhd  rhs 
)
static

Addition operator.

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

◆ operator-()

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

Subtraction operator.

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

◆ operator/()

static Point3Dhd operator/ ( Point3Dhd  lhs,
double  rhs 
)
static

Division operator.

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

◆ operator==()

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

Equality comparison operator.

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

◆ ToPoint3Dd()

Point3Dd ToPoint3Dd ( )

Converts this point to a Point3Dd.

Returns
New Point3Dd object.

◆ ToString()

override string ToString ( )

String conversion.

Returns
string representation of this PointD

Property Documentation

◆ this[int row]

double this[int row]
getset

Index access.

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