Main Page | Class Hierarchy | Data Structures | File List | Data Fields | Globals

FTPoint Class Reference

#include <FTPoint.h>


Detailed Description

FTPoint class is a basic 3 dimensional point or vector.

Definition at line 13 of file FTPoint.h.

Public Member Functions

 FTPoint ()
 Default constructor.

 FTPoint (const FTGL_DOUBLE x, const FTGL_DOUBLE y, const FTGL_DOUBLE z)
 Constructor.

 FTPoint (const FT_Vector &ft_vector)
 Constructor.

FTPointoperator+= (const FTPoint &point)
 Operator += In Place Addition.

FTPoint operator+ (const FTPoint &point)
 Operator +.

FTPoint operator * (double multiplier)
 Operator *.

 operator FTGL_DOUBLE * ()
 Cast to FTGL_DOUBLE*.

void X (FTGL_DOUBLE x)
 Setters.

void Y (FTGL_DOUBLE y)
void Z (FTGL_DOUBLE z)
FTGL_DOUBLE X () const
 Getters.

FTGL_DOUBLE Y () const
FTGL_DOUBLE Z () const

Friends

FTPoint operator * (double multiplier, FTPoint &point)
 Operator *.

bool operator== (const FTPoint &a, const FTPoint &b)
 Operator == Tests for eqaulity.

bool operator!= (const FTPoint &a, const FTPoint &b)
 Operator != Tests for non equality.


Constructor & Destructor Documentation

FTPoint::FTPoint  )  [inline]
 

Default constructor.

Point is set to zero.

Definition at line 19 of file FTPoint.h.

FTPoint::FTPoint const FTGL_DOUBLE  x,
const FTGL_DOUBLE  y,
const FTGL_DOUBLE  z
[inline]
 

Constructor.

Parameters:
x First component
y Second component
z Third component

Definition at line 33 of file FTPoint.h.

References FTGL_DOUBLE.

FTPoint::FTPoint const FT_Vector &  ft_vector  )  [inline]
 

Constructor.

This converts an FT_Vector to an FT_Point

Parameters:
ft_vector A freetype vector

Definition at line 45 of file FTPoint.h.


Member Function Documentation

FTPoint FTPoint::operator * double  multiplier  )  [inline]
 

Operator *.

Parameters:
multiplier 
Returns:
this multiplied by multiplier.

Definition at line 90 of file FTPoint.h.

References values.

FTPoint::operator FTGL_DOUBLE *  )  [inline]
 

Cast to FTGL_DOUBLE*.

Definition at line 133 of file FTPoint.h.

FTPoint FTPoint::operator+ const FTPoint point  )  [inline]
 

Operator +.

Parameters:
point 
Returns:
this plus point.

Definition at line 73 of file FTPoint.h.

References values.

FTPoint& FTPoint::operator+= const FTPoint point  )  [inline]
 

Operator += In Place Addition.

Parameters:
point 
Returns:
this plus point.

Definition at line 58 of file FTPoint.h.

References values.

FTGL_DOUBLE FTPoint::X  )  const [inline]
 

Getters.

Definition at line 150 of file FTPoint.h.

References FTGL_DOUBLE.

void FTPoint::X FTGL_DOUBLE  x  )  [inline]
 

Setters.

Definition at line 142 of file FTPoint.h.

References FTGL_DOUBLE.

Referenced by FTGlyphContainer::Advance(), FTContour::FTContour(), FTExtrdGlyph::FTExtrdGlyph(), FTOutlineGlyph::FTOutlineGlyph(), FTPixmapGlyph::FTPixmapGlyph(), FTPolyGlyph::FTPolyGlyph(), FTTextureGlyph::FTTextureGlyph(), FTBBox::Move(), FTTextureGlyph::Render(), FTPolyGlyph::Render(), FTPixmapGlyph::Render(), FTOutlineGlyph::Render(), FTFont::Render(), FTExtrdGlyph::Render(), and FTBitmapGlyph::Render().

FTGL_DOUBLE FTPoint::Y  )  const [inline]
 

Definition at line 151 of file FTPoint.h.

References FTGL_DOUBLE.

void FTPoint::Y FTGL_DOUBLE  y  )  [inline]
 

Definition at line 143 of file FTPoint.h.

References FTGL_DOUBLE.

Referenced by FTContour::FTContour(), FTExtrdGlyph::FTExtrdGlyph(), FTOutlineGlyph::FTOutlineGlyph(), FTPixmapGlyph::FTPixmapGlyph(), FTPolyGlyph::FTPolyGlyph(), FTTextureGlyph::FTTextureGlyph(), FTBBox::Move(), FTTextureGlyph::Render(), FTPolyGlyph::Render(), FTPixmapGlyph::Render(), FTOutlineGlyph::Render(), FTFont::Render(), FTExtrdGlyph::Render(), and FTBitmapGlyph::Render().

FTGL_DOUBLE FTPoint::Z  )  const [inline]
 

Definition at line 152 of file FTPoint.h.

References FTGL_DOUBLE.

void FTPoint::Z FTGL_DOUBLE  z  )  [inline]
 

Definition at line 144 of file FTPoint.h.

References FTGL_DOUBLE.

Referenced by FTBBox::Move().


Friends And Related Function Documentation

FTPoint operator * double  multiplier,
FTPoint point
[friend]
 

Operator *.

Parameters:
point 
multiplier 
Returns:
multiplier multiplied by point.

Definition at line 15 of file FTPoint.cpp.

bool operator!= const FTPoint a,
const FTPoint b
[friend]
 

Operator != Tests for non equality.

Parameters:
a 
b 
Returns:
true if a & b are not equal

Definition at line 9 of file FTPoint.cpp.

bool operator== const FTPoint a,
const FTPoint b
[friend]
 

Operator == Tests for eqaulity.

Parameters:
a 
b 
Returns:
true if a & b are equal

Definition at line 4 of file FTPoint.cpp.


The documentation for this class was generated from the following file:
Generated on Sun Dec 5 22:24:07 2004 for FTGL by doxygen 1.3.6