Plane3D::Set
Defined in:
Sets all four components of a plane.
TSPlane3D.hPrototype
Plane3D& Set(float a, float b, float c, float d);
Plane3D& Set(const Bivector3D& n, float d);
Plane3D& Set(const Bivector3D& n, const Point3D& p);
Plane3D& Set(const Point3D& p1, const Point3D& p2, const Point3D& p3);
Parameters
a |
The new x coordinate. |
b |
The new y coordinate. |
c |
The new z coordinate. |
d |
The new w coordinate. |
n |
A 3D bivector whose entries are copied to the x, y, and z coordinates. |
p |
A 3D point lying in the plane. |
p1,p2,p3 |
Three 3D points that lie in the plane. |
Description
The Set function sets the x, y, z, and w coordinates of a plane to the values given by the a, b, c, and d parameters, respectively.If the
p parameter is specified, then the w coordinate is given by −(n ∧ p). If the p1, p2, and p3 parameters are specified, then the plane is set to the triple wedge product p1 ∧ p2 ∧ p3.The return value is a reference to the plane object.
