

SlopeFromAngle
You can convert an angle value to a slope value using theSlopeFromAngle
function.
FUNCTION SlopeFromAngle (angle: Integer): Fixed;
angle
 The angle, expressed in clockwise degrees from 12 o'clock and treated
MOD
180. (90 degrees is thus at 3 o'clock and 90 degrees is at 9 o'clock.)DESCRIPTION
TheSlopeFromAngle
function returns the slope corresponding to the angle specified in theangle
parameter. Slopes are defined as Dx/Dy, the horizontal change divided by the vertical change between any two points on a line with the given angle. The negative yaxis is defined as being at 12 o'clock, and the positive yaxis at 6 o'clock. The xaxis is defined as usual, with the positive side defined as being at 3 o'clock.SEE ALSO
For an example of the use of theSlopeFromAngle
function, see Figure 37 on page 313.
Get information on Apple products.
Visit the Apple Store online or at retail locations. 1800MYAPPLE Copyright © 2004 Apple Computer, Inc. All rights reserved.  Terms of use  Privacy Notice 