#include "host.h"
#include <stdio.h>
#include <math.h>
Go to the source code of this file.
◆ AngleFrom
#define AngleFrom |
( |
|
A, |
|
|
|
B |
|
) |
| |
◆ SlopeFrom
◆ XDelta
#define XDelta |
( |
|
A, |
|
|
|
B |
|
) |
| ( (B).x - (A).x ) |
◆ XIntersectionOf
#define XIntersectionOf |
( |
|
A, |
|
|
|
B, |
|
|
|
X |
|
) |
| ( SlopeFrom(A,B) * ((X) - A.x) + A.y) |
◆ YDelta
#define YDelta |
( |
|
A, |
|
|
|
B |
|
) |
| ( (B).y - (A).y ) |
◆ FVECTOR
◆ DistanceBetween()
Definition at line 30 of file fpoint.cpp.
33 return sqrt(static_cast<double>(xd * xd + yd * yd));
◆ NormalizedAngleFrom()
Return the angle from Point1 to Point2 normalized to lie in the range 0 to FullScale (where FullScale corresponds to 2*pi or 360 degrees).
- Parameters
-
Point1 | points to compute angle between |
Point2 | points to compute angle between |
FullScale | value to associate with 2*pi |
- Returns
- none
- Note
- Globals: none
-
Exceptions: none
-
History: Wed Mar 28 14:27:25 1990, DSJ, Created.
Definition at line 48 of file fpoint.cpp.
56 Angle += NumRadsInCircle;
57 Angle *= FullScale / NumRadsInCircle;
58 if (Angle < 0.0 || Angle >= FullScale)