Represents a 3 dimensional point
Inheritance HierarchySystemObject
SystemValueType
RAYLASE.SPICE3.UtilsPoint3D
Namespace: RAYLASE.SPICE3.UtilsAssembly: RAYLASE.SPICE3.Utils (in RAYLASE.SPICE3.Utils.dll) Version: 3.7.0
Syntax[SerializableAttribute]
public struct Point3D
The Point3D type exposes the following members.
Properties | Name | Description |
---|
 | Dimensions | Equals 3. |
 | Item |
Gets or sets the coordinate of the axis specified by index.
|
 | Magnitude |
Returns the distance between this point and the zero point.
|
 | MagnitudeSquared |
Returns the square of distance between this point and the zero point.
|
 | X |
The X-coordinate.
|
 | XY |
Returns the point's XY coordinates.
|
 | Y |
The Y-coordinate.
|
 | Z |
The Z-coordinate.
|
Top
Methods | Name | Description |
---|
 | AngleTo |
Computes the angle between this and other.
Always returns 0 ≤ angle ≤ π.
|
  | Centroid |
Returns the centroid of multiple points.
|
 | CrossProduct |
Computes the cross product between this (a, index finger) and other (middle finger),
following the right-hand rule.
Returns the normal (a × b, thumb).
|
 | DotProduct |
Computes the dot product between this and other.
|
 | Equals(Object) |
Specifies whether this point contains the same coordinates as the specified object.
(Overrides ValueTypeEquals(Object)) |
 | Equals(Point3D) |
Specifies whether this point contains the same coordinates as the specified point.
|
 | Equals(Point3D, Double) |
Specifies whether this point contains the same coordinates as the specified point.
|
  | FromString |
Converts this point from a culture-invariant human-readable string, to the equivalent binary representation.
|
 | GetHashCode | Returns the hash code for this instance. (Overrides ValueTypeGetHashCode) |
 | Midpoint |
Returns the midpoint between two points.
|
 | Normalize |
Normalises this vector into a unit vector of the same direction.
|
 | Opposes |
Whether other is of opposite direction of this,
and with the same Magnitude.
i.e. other is exactly negative of this.
|
 | Scale |
Scales this point from origin by the given parameters.
|
  | ToAxisString |
Returns a label of the specified axis.
|
 | ToString | Returns the fully qualified type name of this instance. (Overrides ValueTypeToString) |
 | ToString(Int32) |
Converts this point in a human-readable format showing its coordinates with the specified number of decimal digits, using a culture invariant representation.
|
 | ToString(String, String, IFormatProvider) |
Converts this point to a string of X, Y, and Z-value separated by separator.
|
Top
Operators | Name | Description |
---|
  | Addition(Double, Point3D) |
Adds a scalar to all the coordinates of a point, and returns a new point.
|
  | Addition(Point3D, Point3D) |
Adds the coordinates of two points, and returns the result as a new point.
|
  | Addition(Point3D, Double) |
Adds a scalar to all the coordinates of a point, and returns the result as a new point.
|
  | Division(Point3D, Double) |
Divides all the coordinates of a point with a scalar, and returns the result as a new point.
|
  | Equality(Point3D, Point3D) |
Compares two points with each other, and returns true if all coordinates are equal.
|
  | Inequality(Point3D, Point3D) |
Compares two points with each other, and returns true if at least one pair of coordinates are different.
|
  | Multiply(Double, Point3D) |
Multiplies all the coordinates of a point with a scalar, and returns the result as a new point.
|
  | Multiply(Point3D, Double) |
Multiplies all the coordinates of a point with a scalar, and returns the result as a new point.
|
  | Subtraction(Double, Point3D) |
Subtracts all the coordinates of a point from a scalar, and returns the result as a new point.
|
  | Subtraction(Point3D, Point3D) |
Subtracts the coordinates of two points, and returns the result as a new point.
|
  | Subtraction(Point3D, Double) |
Subtracts a scalar from all the coordinates of a point, and returns the result as a new point.
|
  | UnaryNegation(Point3D) |
Returns the negation of a point. In case of a vector, this returns the inverse of the input vector.
|
Top
Fields | Name | Description |
---|
  | XAxis |
Unit vector representing the X-axis.
|
  | YAxis |
Unit vector representing the Y-axis.
|
  | ZAxis |
Unit vector representing the Z-axis.
|
  | Zero |
Point initialized by zero for every axis.
|
Top
See Also