Public Member Functions | |
Point3D (double x, double y, double z) | |
Ctor. | |
Point3D (Point3D p) | |
Copy ctor. | |
Point3D (double[] arr) | |
Ctor. | |
void | CopyTo (Point3D p) |
Copies this point to another. | |
override bool | Equals (object p) |
Compares two points. | |
override string | ToString () |
String representation. | |
override int | GetHashCode () |
Hash code. | |
double[] | ToArray () |
Gets an array of 3 doubles. | |
void | FromArray (object[] arr) |
Sets the point with coordinates from array of 3 doubles. | |
Static Public Member Functions | |
static bool | operator== (Point3D g1, Point3D g2) |
Checks two points if they are equal in the terms of Equals method. | |
static bool | operator!= (Point3D g1, Point3D g2) |
Checks two points for unequality in the terms of Equals method. | |
static bool | DoublesEqual (double d1, double d2) |
Compares two doubles in the terms of Tolerance. | |
static bool | PointsEqual (Point3D p1, Point3D p2) |
Compares two points. | |
static | operator double[] (Point3D pt) |
Redirects to ToArray(). | |
static Point3D | operator- (Point3D pt1, Point3D pt2) |
Substraction. | |
static Point3D | operator+ (Point3D pt1, Point3D pt2) |
Addition. | |
static Point3D | operator * (double k, Point3D pt) |
Multiplication by number. | |
static double | operator * (Point3D a, Point3D b) |
Scalar multiplication. | |
static Point3D[] | ConvertArray (double[] arr) |
Builds an array of Point3D from an array of doubles. | |
static Point3D[] | Convert2DArray (double[] arr) |
Builds an array of Point3D from 2D-array of doubles. | |
Properties | |
double | X |
X. | |
double | Y |
Y. | |
double | Z |
Z. | |
static double | Tolerance |
Gets or sets predefined tolerance. |
Contains predefined tolerance property for equality operations.
|
Ctor.
|
|
Copy ctor.
|
|
Ctor.
|
|
Copies this point to another.
|
|
Compares two points.
|
|
Checks two points if they are equal in the terms of Equals method.
|
|
Checks two points for unequality in the terms of Equals method.
|
|
Compares two doubles in the terms of Tolerance.
|
|
Compares two points. Equal method redirects here.
|
|
String representation.
|
|
Hash code.
|
|
Gets an array of 3 doubles.
|
|
Sets the point with coordinates from array of 3 doubles.
|
|
Redirects to ToArray().
|
|
Substraction.
|
|
Addition.
|
|
Multiplication by number.
|
|
Scalar multiplication.
|
|
Builds an array of Point3D from an array of doubles.
|
|
Builds an array of Point3D from 2D-array of doubles.
|
|
X.
|
|
Y.
|
|
Z.
|
|
Gets or sets predefined tolerance.
|