Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Plane"/> struct.
 /// Constructs a Plane from the X, Y, and Z components of its normal, and its distance from the origin on that normal.
 /// </summary>
 /// <param name="x">The X-component of the normal.</param>
 /// <param name="y">The Y-component of the normal.</param>
 /// <param name="z">The Z-component of the normal.</param>
 /// <param name="d">The distance of the Plane along its normal from the origin.</param>
 public Plane(double x, double y, double z, double d)
     : this(UnitVector3D.Create(x, y, z), -d)
 {
 }
Beispiel #2
0
 public UnitVector3D Normalize()
 {
     return(UnitVector3D.Create(this.X, this.Y, this.Z));
 }