Is there Point3D?

steavy picture steavy · Apr 7, 2013 · Viewed 15.7k times · Source

Is there a built in type Point3 in .Net? Some kind of this

public class Point3D
{
    public double X { get; set; }
    public double Y { get; set; }
    public double Z { get; set; }
}

but built in. It is not hard to implement it myself, but..

Answer

Soner Gönül picture Soner Gönül · Apr 7, 2013

.NET Framework has Point3D class.

Represents the coordinates of a three-dimensional (3D) data point. This class is used when performing custom drawing with 3D charts.

  • X     Gets or sets the X coordinate of a 3D point.
  • Y     Gets or sets the Y coordinate of a 3D point.
  • Z     Gets or sets the Z coordinate of a 3D point.

Also has Point3D structure.

Represents an x-, y-, and z-coordinate point in 3-D space.