Multi-purpose 3D float vector struct. More...
Inherits IEquatable< Point3Df >.
Public Member Functions | |
Point3Df (float x, float y, float z) | |
Constructor. More... | |
override bool | Equals (object obj) |
Indicates whether this instance and the given obj are equal. More... | |
bool | Equals (Point3Df 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... | |
Point3Df | CrossProduct (Point3Df v2) |
Calculates the crossproduct of this vector and the given v2 . More... | |
Static Public Member Functions | |
static Point3Df | operator+ (Point3Df lhs, Point3Df rhs) |
Addition operator. More... | |
static Point3Df | operator- (Point3Df lhs, Point3Df rhs) |
Subtraction operator. More... | |
static float | operator* (Point3Df lhs, Point3Df rhs) |
Multiplication operator. Gets the inner product of the given lhs and rhs . More... | |
static Point3Df | operator* (float lhs, Point3Df rhs) |
Multiplication operator. More... | |
static Point3Df | operator* (Point3Df lhs, float rhs) |
Multiplication operator. More... | |
static Point3Df | operator/ (Point3Df lhs, float rhs) |
Division operator. More... | |
static Point3Df | operator* (Matrix3D lhs, Point3Df rhs) |
Multiply a Matrix with a PointD rhs. More... | |
static Point3Df | operator* (AffineMatrix3D m, Point3Df p) |
Transform a point using an affine matrix (= coordinate system). More... | |
static bool | operator== (Point3Df lhs, Point3Df rhs) |
Equality comparison operator. More... | |
static bool | operator!= (Point3Df lhs, Point3Df rhs) |
Inequality comparison operator. More... | |
Properties | |
float | X [get, set] |
X-coordinate. | |
float | Y [get, set] |
Y-coordinate. | |
float | Z [get, set] |
Z-coordinate. | |
float | this[int row] [get, set] |
Index access. More... | |
float | Length [get] |
Gets the length of this point. | |
Multi-purpose 3D float vector struct.
Point3Df | ( | float | x, |
float | y, | ||
float | z | ||
) |
Constructor.
x | X-coordinate. |
y | Y-Coordinate. |
z | Z-coordinate |
Calculates the crossproduct of this vector and the given v2 .
v2 | Vector to build crossproduct with. |
override bool Equals | ( | object | obj | ) |
Indicates whether this instance and the given obj are equal.
obj | Object to compare to. |
bool Equals | ( | Point3Df | obj | ) |
Indicates whether this instance and the given obj are equal.
obj | Object to compare to. |
override int GetHashCode | ( | ) |
Returns the hash code for this instance.
Inequality comparison operator.
lhs | Left hand side operand. |
rhs | Right hand side operand. |
|
static |
Transform a point using an affine matrix (= coordinate system).
m | affine matrix to transform with |
p | point to transform |
Multiplication operator.
lhs | Left hand side operand. |
rhs | Right hand side operand. |
Multiply a Matrix with a PointD rhs.
lhs | matrix |
rhs | rhs |
Multiplication operator.
lhs | Left hand side operand. |
rhs | Right hand side operand. |
Multiplication operator. Gets the inner product of the given lhs and rhs .
lhs | Left hand side operand. |
rhs | Right hand side operand. |
Addition operator.
lhs | Left hand side operand. |
rhs | Right hand side operand. |
Subtraction operator.
lhs | Left hand side operand. |
rhs | Right hand side operand. |
Division operator.
lhs | Left hand side operand. |
rhs | Right hand side operand. |
Equality comparison operator.
lhs | Left hand side operand. |
rhs | Right hand side operand. |
override string ToString | ( | ) |
String conversion.
|
getset |