tesseract-doxygen/classify/fpoint.h File Reference

#include "general.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,
 ) 
Value:
( atan2((double) YDelta(A,B),           \
                                        (double) XDelta(A,B) ) )
#define SlopeFrom ( A,
 )     ( YDelta(A,B) / XDelta(A,B) )
#define XDelta ( A,
 )     ( (B).x - (A).x )

---------------------------------------------------------------------------- Macros ----------------------------------------------------------------------------

#define XIntersectionOf ( A,
B,
 )     ( SlopeFrom(A,B) * ((X) - A.x) + A.y)
#define YDelta ( A,
 )     ( (B).y - (A).y )

Typedef Documentation

typedef FPOINT FVECTOR

Function Documentation

FLOAT32 DistanceBetween ( FPOINT  A,
FPOINT  B 
)

---------------------------------------------------------------------------- Include Files and Type Defines ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- Public Code ----------------------------------------------------------------------------

FLOAT32 NormalizedAngleFrom ( FPOINT Point1,
FPOINT Point2,
FLOAT32  FullScale 
)
Generated on Sun Jul 18 17:10:50 2010 for Tesseract by  doxygen 1.6.3