Next: , Previous: Focus Global Variables, Up: Focus Reference


23.3 Constructors and Setting Functions

— Default constructor: void Focus (void)

Creates an empty Focus

— Constructor: void Focus (const real pos_x, const real pos_y, const real pos_z, const real dir_x, const real dir_y, const real dir_z, const real dist, [const real ang = 0, [char ax = 'z']])

Constructs a Focus using the first three real arguments as the x, y, and z-coordinates of position, and the fourth through the sixth argument as the x, y, and z-coordinates of direction. dist specifies the distance of the Focus from the plane of projection, ang the angle of rotation, which affects which direction is considered to be “up”, and ax the major axis to which the Focus is aligned.

— Setting function: void set (const real pos_x, const real pos_y, const real pos_z, const real dir_x, const real dir_y, const real dir_z, const real dist, [const real ang = 0, [char ax = 'z']])

Resets an existing Focus. Corresponds to the constructor above.

— Constructor: void Focus (const Point& pos, const Point& dir, const real dist, [const real ang = 0, [char ax = 'z']])

Constructs a Focus using Point arguments for position and direction. Otherwise, the arguments of this constructor correspond to those of the one above.

— Setting function: void set (const Point& pos, const Point& dir, const real dist, [const real ang = 0, [char ax = 'z']])

Resets an existing Focus. Corresponds to the constructor above.