CVB.Net 14.0
Point3Dd Struct Reference

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

Inherits IEquatable< Point3Dd >.

## Public Member Functions

Point3Dd (double x, double y, double z)
Constructor. More...

Point3Df ToPoint3Df ()
Converts this point to a Point3Df. More...

override bool Equals (object obj)
Indicates whether this instance and the given obj are equal. More...

bool Equals (Point3Dd obj)
Indicates whether this instance and the given obj are equal. More...

override int GetHashCode ()
Returns the hash code for this instance. More...

override string ToString ()
String conversion. More...

Point3Dd CrossProduct (Point3Dd v2)
Calculates the crossproduct of this vector and the given v2 . More...

## Static Public Member Functions

static Point3Dd operator+ (Point3Dd lhs, Point3Dd rhs)
Addition operator. More...

static Point3Dd operator- (Point3Dd lhs, Point3Dd rhs)
Subtraction operator. More...

static double operator* (Point3Dd lhs, Point3Dd rhs)
Multiplication operator. Gets the inner product of the given lhs and rhs . More...

static Point3Dd operator* (double lhs, Point3Dd rhs)
Multiplication operator. More...

static Point3Dd operator* (Point3Dd lhs, double rhs)
Multiplication operator. More...

static Point3Dd operator/ (Point3Dd lhs, double rhs)
Division operator. More...

static Point3Dd operator* (Matrix3D lhs, Point3Dd rhs)
Multiply a Matrix with a PointD rhs. More...

static Point3Dd operator* (AffineMatrix3D m, Point3Dd p)
Transform a point using an affine matrix (= coordinate system). More...

static bool operator== (Point3Dd lhs, Point3Dd rhs)
Equality comparison operator. More...

static bool operator!= (Point3Dd lhs, Point3Dd 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 Length` [get]`
Gets the length of this point.

double this[int row]` [get, set]`
Index access. More...

## Detailed Description

Multi-purpose 3D double vector struct.

## ◆ Point3Dd()

 Point3Dd ( double x, double y, double z )

Constructor.

Parameters
 x X-coordinate. y Y-Coordinate. z Z-coordinate

## ◆ CrossProduct()

 Point3Dd CrossProduct ( Point3Dd v2 )

Calculates the crossproduct of this vector and the given v2 .

Parameters
 v2 Vector 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
 obj Object 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 ( Point3Dd obj )

Indicates whether this instance and the given obj are equal.

Parameters
 obj Object 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!= ( Point3Dd lhs, Point3Dd rhs )
static

Inequality comparison operator.

Parameters
 lhs Left hand side operand. rhs Right hand side operand.
Returns
True if lhs != rhs , otherwise false.

## ◆ operator*() [1/5]

 static Point3Dd operator* ( AffineMatrix3D m, Point3Dd p )
static

Transform a point using an affine matrix (= coordinate system).

Parameters
 m affine matrix to transform with p point to transform
Returns
Product of m and p .

## ◆ operator*() [2/5]

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

Multiplication operator.

Parameters
 lhs Left hand side operand. rhs Right hand side operand.
Returns
Product of lhs and rhs .

## ◆ operator*() [3/5]

 static Point3Dd operator* ( Matrix3D lhs, Point3Dd rhs )
static

Multiply a Matrix with a PointD rhs.

Parameters
 lhs matrix rhs rhs
Returns
Product of lhs and rhs .

## ◆ operator*() [4/5]

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

Multiplication operator.

Parameters
 lhs Left hand side operand. rhs Right hand side operand.
Returns
Product of lhs and rhs .

## ◆ operator*() [5/5]

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

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

Parameters
 lhs Left hand side operand. rhs Right hand side operand.
Returns
Inner product of lhs and rhs .

## ◆ operator+()

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

Addition operator.

Parameters
 lhs Left hand side operand. rhs Right hand side operand.
Returns
Sum of lhs and rhs .

## ◆ operator-()

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

Subtraction operator.

Parameters
 lhs Left hand side operand. rhs Right hand side operand.
Returns
Difference of lhs and rhs .

## ◆ operator/()

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

Division operator.

Parameters
 lhs Left hand side operand. rhs Right hand side operand.
Returns
Ratio of lhs and rhs .

## ◆ operator==()

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

Equality comparison operator.

Parameters
 lhs Left hand side operand. rhs Right hand side operand.
Returns
True if lhs == rhs , otherwise false.

## ◆ ToPoint3Df()

 Point3Df ToPoint3Df ( )

Converts this point to a Point3Df.

Returns
Point3Df point.

## ◆ ToString()

 override string ToString ( )

String conversion.

Returns
string representation of this PointD

## ◆ this[int row]

 double this[int row]
getset

Index access.

Parameters
 row The element to access (0 is X).
Returns