#include "host.h"
#include <stdio.h>
#include <math.h>
Go to the source code of this file.
Classes |
struct | FPOINT |
Defines |
#define | XDelta(A, B) ( (B).x - (A).x ) |
#define | YDelta(A, B) ( (B).y - (A).y ) |
#define | SlopeFrom(A, B) ( YDelta(A,B) / XDelta(A,B) ) |
#define | AngleFrom(A, B) |
#define | XIntersectionOf(A, B, X) ( SlopeFrom(A,B) * ((X) - A.x) + A.y) |
Typedefs |
typedef FPOINT | FVECTOR |
Functions |
FLOAT32 | DistanceBetween (FPOINT A, FPOINT B) |
FLOAT32 | NormalizedAngleFrom (FPOINT *Point1, FPOINT *Point2, FLOAT32 FullScale) |
Define Documentation
#define AngleFrom |
( |
|
A, |
|
|
|
B |
|
) |
| |
#define SlopeFrom |
( |
|
A, |
|
|
|
B |
|
) |
| ( YDelta(A,B) / XDelta(A,B) ) |
#define XDelta |
( |
|
A, |
|
|
|
B |
|
) |
| ( (B).x - (A).x ) |
---------------------------------------------------------------------------- Macros ----------------------------------------------------------------------------
#define XIntersectionOf |
( |
|
A, |
|
|
|
B, |
|
|
|
X |
|
) |
| ( SlopeFrom(A,B) * ((X) - A.x) + A.y) |
#define YDelta |
( |
|
A, |
|
|
|
B |
|
) |
| ( (B).y - (A).y ) |
Typedef Documentation
Function Documentation
---------------------------------------------------------------------------- Include Files and Type Defines ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- Public Code ----------------------------------------------------------------------------