Click or drag to resize

Point3D Structure

Represents a 3 dimensional point
Inheritance Hierarchy
SystemObject
  SystemValueType
    RAYLASE.SPICE3.UtilsPoint3D

Namespace: RAYLASE.SPICE3.Utils
Assembly: RAYLASE.SPICE3.Utils (in RAYLASE.SPICE3.Utils.dll) Version: 3.4.1
Syntax
C#
[SerializableAttribute]
public struct Point3D

The Point3D type exposes the following members.

Properties
 NameDescription
Public propertyDimensionsEquals 3.
Public propertyItem Gets or sets the coordinate of the axis specified by index.
Public propertyMagnitude Returns the distance between this point and the zero point.
Public propertyMagnitudeSquared Returns the square of distance between this point and the zero point.
Public propertyX The X-coordinate.
Public propertyXY Returns the point's XY coordinates.
Public propertyY The Y-coordinate.
Public propertyZ The Z-coordinate.
Top
Methods
 NameDescription
Public methodAngleTo Computes the angle between this and vector. Always returns 0 ≤ angle ≤ π.
Public methodStatic memberCentroid Returns the centroid of multiple points.
Public methodCrossProduct Computes the cross product between this (a, index finger) and b (middle finger), following the right-hand rule. Returns the normal (a × b, thumb).
Public methodDotProduct Computes the dot product between this and vector.
Public methodEquals(Object) Specifies whether this point contains the same coordinates as the specified object.
(Overrides ValueTypeEquals(Object))
Public methodEquals(Point3D) Specifies whether this point contains the same coordinates as the specified point.
Public methodEquals(Point3D, Double) Specifies whether this point contains the same coordinates as the specified point.
Public methodStatic memberFromString Converts this point from a culture-invariant human-readable string, to the equivalent binary representation.
Public methodGetHashCodeReturns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
Public methodMidpoint Returns the midpoint between two points.
Public methodNormalize Normalises this vector into a unit vector of the same direction.
Public methodOpposes Whether vector is of opposite direction of this, and with the same Magnitude. i.e. vector is exactly negative of this.
Public methodScale Scales this point from origin by the given parameters.
Public methodStatic memberToAxisString Returns a label of the specified axis.
Public methodToStringReturns the fully qualified type name of this instance.
(Overrides ValueTypeToString)
Public methodToString(Int32) Converts this point in a human-readable format showing its coordinates with the specified number of decimal digits, using a culture invariant representation.
Public methodToString(String, String, IFormatProvider) Converts this point to a string of X, Y, and Z-value separated by separator.
Top
Operators
 NameDescription
Public operatorStatic memberAddition(Double, Point3D) Adds a scalar to all the coordinates of a point, and returns a new point.
Public operatorStatic memberAddition(Point3D, Point3D) Adds the coordinates of two points, and returns the result as a new point.
Public operatorStatic memberAddition(Point3D, Double) Adds a scalar to all the coordinates of a point, and returns the result as a new point.
Public operatorStatic memberDivision(Point3D, Double) Divides all the coordinates of a point with a scalar, and returns the result as a new point.
Public operatorStatic memberEquality(Point3D, Point3D) Compares two points with each other, and returns true if all coordinates are equal.
Public operatorStatic memberInequality(Point3D, Point3D) Compares two points with each other, and returns true if at least one pair of coordinates are different.
Public operatorStatic memberMultiply(Double, Point3D) Multiplies all the coordinates of a point with a scalar, and returns the result as a new point.
Public operatorStatic memberMultiply(Point3D, Double) Multiplies all the coordinates of a point with a scalar, and returns the result as a new point.
Public operatorStatic memberSubtraction(Double, Point3D) Subtracts all the coordinates of a point from a scalar, and returns the result as a new point.
Public operatorStatic memberSubtraction(Point3D, Point3D) Subtracts the coordinates of two points, and returns the result as a new point.
Public operatorStatic memberSubtraction(Point3D, Double) Subtracts a scalar from all the coordinates of a point, and returns the result as a new point.
Public operatorStatic memberUnaryNegation(Point3D) Returns the negation of a point. In case of a vector, this returns the inverse of the input vector.
Top
Fields
 NameDescription
Public fieldStatic memberXAxis Unit vector representing the X-axis.
Public fieldStatic memberYAxis Unit vector representing the Y-axis.
Public fieldStatic memberZAxis Unit vector representing the Z-axis.
Public fieldStatic memberZero Point initialized by zero for every axis.
Top
See Also