Two trigonometric functions which are important in graphics are the sin(A) and cos(A). Just to review what they are, in the right triangle below, the sin(angle A) is the ratio of (side a) / (side c). The cos(angle A)= the ratio of (side b)/(side c). Since angles can be measured in either degrees or radians, it is best to define what one degree is in radians.

#define TO_RADS 0.017453293

Given this definition, to translate degrees into radians use this formula: radians=TO_RADS*degrees;
To translate radians into degrees, use this formula: degrees=radians / TO_RADS;


column and row matrices
return to table of contents