C4 Engine
C4 Engine API Documentation

Flector3D::Set

Defined in:  TSFlector3D.h
Sets all eight components of a flector.
Constructor

Flector3D& Set(float px, float py, float pz, float pw, float gx, float gy, float gz, float gw);

Flector3D& Set(const Vector4D& point, const Plane3D& plane);

Flector3D& Set(const Point3D& point, const Plane3D& plane);

Parameters
px,py,pz,pw The values of the e1, e2, e3, and e4 coordinates.
gx,gy,gz,gw The values of the e234, e314, e124, and e321 coordinates.
plane A plane whose entries are copied to the e234, e314, e124, and e321 coordinates.
point A point whose entries are copied to the e1, e2, e3, and e4 coordinates.
Description
The Set function sets the eight coordinates of a flector. If the point point and plane plane are specified, then their coordinates are assigned to the vector part and trivector part of the flector, respectively. If the point has type Point3D, then its w coordinate is assumed to be one.

The return value is a reference to the flector object.