Class Point3D

Point3D class

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

public class Point3D : Point2D

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
CoordinateArray { get; }
W { get; set; }Gets or sets W coordinate
X { get; set; }Gets or sets the x.
Y { get; set; }Gets or sets the y.
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
Distance(Point2D)
Distance(Point3D)
Equality(object)Does the real comparison of 3D points
override Equals(object)Allows to compare 3D points.
override Equals(Point2D)Overrides the Equals of 2D point so the called comparison would be 3D
EqualsSoft(object, double)Allows to compare 3D points with specified threshold.
override GetHashCode()Return hash code for object.
Normalize()Normalizes the specified origin.
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