Back to class index
| Plane::PlaneSyntaxPlane::Plane(); [1 line of code]The default constructor does not initialize any members of this class. This means that the values of the members normal and d are undefined after creating a new Plane using this default constructor. Remember to assign to them before use. See AlsoSyntaxPlane::Plane(const float4 &normal, float d); [5 lines of code]Constructs a plane by directly specifying the normal and distance parameters. Parametersconst float4 &normalThe direction the plane is facing. This vector must have been normalized in advance. floatdThe offset of this plane from the origin. The value -d gives the signed distance of this plane from the origin. See AlsoSyntaxPlane::Plane(const float4 &v1, const float4 &v2, const float4 &v3); [4 lines of code]Constructs a plane by specifying three points on the plane. The normal of the plane will point to the halfspace from which the points are observed to be oriented in counter-clockwise order. Note The points v1, v2 and v3 must not all lie on the same line. See AlsoSyntaxPlane::Plane(const float4 &point, const float4 &normal); [4 lines of code]Constructs a plane by specifying a single point on the plane, and the surface normal. Parametersconst float4 &normalThe direction the plane is facing. This vector must have been normalized in advance. See AlsoSyntaxPlane::Plane(const Ray &line, const float4 &normal); [5 lines of code]Plane::Plane(const Line &line, const float4 &normal); [5 lines of code] Plane::Plane(const LineSegment &line, const float4 &normal); [5 lines of code] Constructs a plane by specifying a line that lies on the plane, and the plane normal. Parametersconst Ray &lineThe line object that is to be contained in the newly constructed plane. const float4 &normalThe direction the plane if facing. This vector must have been normalized in advance. The normal of the line must not be collinear with the direction of this normal. If a line segment is specified, the line segment must not be degenerate. |