Point4D Class

Defines a point in homogeneous coordinates.
Public Class Point4D 
Inherits Point3D
This language is not supported or no code example is available.
public class Point4D : Point3D
This language is not supported or no code example is available.
Name Description
Protected constructor Point4D(Point4D)
Public constructor Point4D() Empty constructor.
Public constructor Point4D(Point3D) 3D point constructor.
Public constructor Point4D(double, double) 2D euclidean point constructor (Z=0, W=1).
Public constructor Point4D(double, double, double) 3D euclidean point constructor (W=1).
Public constructor Point4D(double, double, double, double) Homogeneous point constructor.
Public constructor Point4D(double[]) Double array constructor.
Top
Name Description
Public property AsVector (inherited from Point3D).
Public property Euclid Gets or sets the Euclidean representation for this homogeneous point.
Public property Item(int) (inherited from Point3D).
Public property Static MaxValue Returns a 3D point with coordinates at double.MaxValue. (inherited from Point3D).
Public property MaximumCoordinate Gets the absolute value of the maximum coordinate.
Public property Static MinValue Returns a 3D point with coordinates at double.MinValue. (inherited from Point3D).
Public property Static Origin Returns the (0,0,0) point. (inherited from Point3D).
Public property W W term.
Top
Methods
 
Name Description
Public method Static AreEqual(Point3D, Point3D, double) Compares two 3D points in the given domain. (inherited from Point3D).
Public method Clone() Creates a deep copy of this point.
Public method ConvertToSurrogate()
Public method Static Distance(Point4D, Point4D) Computes the 4D distance.
Public method Static DistanceSquared(Point3D, Point3D) Computes the squared distance between two 3D points. (inherited from Point3D).
Public method DistanceTo(Plane) Computes the point to plane signed distance. (inherited from Point3D).
Public method DistanceTo(Point3D) Computes the distance to 3D point b. (inherited from Point3D).
Public method DistanceTo(Segment3D) Computes the point-line distance. (inherited from Point3D).
Public method Equals(Point4D)
Public method Equals(object) Determines whether the specified object is equal to the current object.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method GetHashCode() Serves as the default hash function.
Public method GetType Gets the Type of the current instance. (inherited from Object).
Public method GetXElement() (inherited from Point3D).
Public method IsInside(Point3D, Point3D) Checks if the point is inside the specified volume. (inherited from Point3D).
Public method IsValid() Returns true if the point's coordinates are reasonable values.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Public method Static MidPoint(Point3D, Point3D) Computes the midpoint between two 3D points. (inherited from Point3D).
Public method ProjectTo(Segment3D) Project this point onto a 3D segment. (inherited from Point3D).
Public method Static ReadXml(XmlNode)
Public method Static ReadXml(string)
Public method ToArray() Returns an array of point's coordinates.
Public method ToString() Converts this 4D point to a human readable string.
Public method ToStringXml() Converts this 3D point to a human readable string.
Public method TransformBy(Transformation) Transforms the homogeneous point by the specified transformation.
Public method WriteAsFloat(BinaryWriter) (inherited from Point3D).
Public method WriteXml(XmlTextWriter)
Top
Name Description
Operator Static Addition Addition between two 4D points.
Operator Static Division Division between a 4D point and a scalar s.
Operator Static Equality
Operator Static Inequality
Operator Static Multiply Product between a scalar value and a 4D point.
Operator Static Subtraction Subtraction between two 4D points.
Top
Name Description
Public extension method DrawGL(this Point2D) Calls glVertex2d(X, Y) (Defined by ExtensionMethodsGL).
Public extension method DrawGL(this Point3D) Calls glVertex3d(X, Y, Z). (Defined by ExtensionMethodsGL).
Public extension method DrawGL(this PointNormalUv) Calls glNormal3d(Nx, Ny, Nz) and glVertex3d(X, Y, Z) (Defined by ExtensionMethodsGL).
Public extension method DrawGL(this PointNormalUv, Color[]) For internal use only. (Defined by ExtensionMethodsGL).
Public extension method DrawGL(this PointRGB) Calls gl.Color3ub(R, G, B) and glVertex3d(X, Y, Z). (Defined by ExtensionMethodsGL).
Public extension method DrawGL(this PointWithDisplacement, double) Calls gl.Vertex3d(X+UX, Y+UY, Z+UZ). (Defined by ExtensionMethodsGL).
Public extension method DrawGL(this Vector3D) Calls gl.Normal3d(X, Y, Z) (Defined by ExtensionMethodsGL).
Public extension method EqualsExact(this Point3D, Point3D) Performs an exact double comparison between the XYZ coordinates of two points. (Defined by PointExtender).
Public extension method IsOnCurve(this Point3D, ICurve, double) Checks if the point is on the specified ICurve. (Defined by PointExtender).
Public extension method IsOnCurve(this Point3D, ICurve, double, out Point3D, out double) Checks if the point is on the specified ICurve. (Defined by PointExtender).
Top
Fields
 
Name Description
Public field X X coordinate value. (inherited from Point2D).
Public field Y Y coordinate value. (inherited from Point2D).
Public field Z Z coordinate value. (inherited from Point3D).
Top

.NET Framework

Supported in: 4.8

In this article

Definition