A SERVICE OF

logo

Other Math Classes
191
You can ll an array by setting groups of values using the following methods:
void setRange(int i, int count, csInt vals[]);
void getRange(int i, int count, csInt vals[]);
void fillRange(int i, int count, csInt vals[]);
i is the position in the array where you want to begin setting values.
count is the number of array elements you want to set.
vals[] is an array of values that you want to enter into the array.
The llRange() method sets all of the values in an array to the value passed in the
argument, vals[]
The operator, [], assigns values.
csInt operator[](int i) const;
Other Math Classes
Cosmo 3D includes the following classes used for mathematical calculations.
csSeg encapsulates a line segment.
csPlaneencapsulates a plane.
csFrustum encapsulates a viewing frustum.
The following sections explain these classes.
csSeg
csSeg encapsulates a line segment in 3-space as an origin, a normalized direction vector,
and a length.
The methods in the class allow you to
Construct a line from a pair of points.
Create a vector given a point and polar coordinates.
Clip a segment out of a line.