Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

Point Class Reference

The Point class is a point using floats that is typically a location in the world coordinate and not the screen coordinate space. More...

#include <Point.h>

List of all members.

Public Methods

 Point ()
 Default ctor.

 Point (float x2, float y2)
 Constructor allowing for initialization.

void init (float x2, float y2)
 Reinitializes the Point.

float distFromOrigin () const
 Returns the distance from the origin, or Point( 0.0f, 0.0f ).

float distTo (const Point &other) const
 Returns the distance between this Point and the given Point.

float thetaTo (const Point &other) const
 Finds angle between a vector on the positive x axis from this Point and the line segment from this Point to the given Point.

bool operator< (const Point &rhs) const

Public Attributes

float x
float y


Detailed Description

The Point class is a point using floats that is typically a location in the world coordinate and not the screen coordinate space.

Note: This class was brought in from another project Jason has done.


Constructor & Destructor Documentation

Point::Point   [inline]
 

Default ctor.

Point::Point float    x2,
float    y2
[inline]
 

Constructor allowing for initialization.


Member Function Documentation

float Point::distFromOrigin   const [inline]
 

Returns the distance from the origin, or Point( 0.0f, 0.0f ).

float Point::distTo const Point &    other const [inline]
 

Returns the distance between this Point and the given Point.

void Point::init float    x2,
float    y2
[inline]
 

Reinitializes the Point.

bool Point::operator< const Point &    rhs const [inline]
 

float Point::thetaTo const Point &    other const [inline]
 

Finds angle between a vector on the positive x axis from this Point and the line segment from this Point to the given Point.


Member Data Documentation

float Point::x
 

float Point::y
 


The documentation for this class was generated from the following file:
Generated on Tue Mar 4 02:29:26 2003 for SuperIsoBomb by doxygen1.2.18