Class Point3D

Point3D class

Represents class to work with 3D point and special operations for it.

public class Point3D

Constructors

NameDescription
Point3D()Initializes a new instance of the Point3D class
Point3D(double, double)Initializes a new instance of the Point3D class
Point3D(double, double, double)Initializes a new instance of the Point3D class
Point3D(double, double, double, double)Initializes a new instance of the Point3D class

Properties

NameDescription
W { get; set; }Gets or sets W coordinate
X { get; set; }Gets or sets X coordinate
Y { get; set; }Gets or sets Y coordinate
Z { get; set; }Gets or sets Z coordinate

Methods

NameDescription
static CrossProduct(Point3D, Point3D)Gets cross-product of a points
static NormalVector(Point3D, Point3D, Point3D)Get normal vector of a plane.
static Spherical(double, double, double)Get point in spherical coordinates
Copy()Creates copy of current point
override Equals(object)Allows to compare 3D points.
EqualsSoft(object, double)Allows to compare 3D points with specified threshold.
override GetHashCode()Return hash code for object.
Normalize()Normalizes the specified origin.
Transform(TransformationMatrix)Applies transformation to a point
TransformNormalize(TransformationMatrix)Applies transformation with normalization.
static Distance(Point3D, Point3D)Gets distance between points
static DotProduct(Point3D, Point3D)Gets dot product between two vectors.
operator +Implements the operator +.
operator ==Allows to compare 3D points.
operator !=Allows to compare 3D points.
operator *Implements the operator *.
operator -Implements the operator -.

Fields

NameDescription
static readonly Zero

See Also