Node:Projecting Points, Next:, Previous:Applying Transformations to Points, Up:Point Reference



Projecting

bool project (const Focus& f, [const unsigned short proj = Projections::PERSP, [real factor = 1]]) Function
bool project ([const unsigned short& proj = Projections::PERSP, [real factor = 1]]) Function
These functions calculate projective_coordinates. proj indicates which projection is to be performed. If it is Projections::PERSP, then f indicates which Focus is to be used (in the first version), or the global variable default_focus is used (in the second). If Projections::PARALLEL_X_Y, Projections::PARALLEL_X_Z, or Projections::PARALLEL_Z_Y is used, f is ignored, since these projections don't use a Focus. Currently, no other projections are defined. The x and y coordinates in projective_coordinates are multiplied by factor with the default being 1.