Public Member Functions | Static Public Member Functions | Public Attributes

point2d_t< T > Struct Template Reference
[Core Geometry Objects]

Template for two-dimensional point. More...

#include <geometry_2d.h>

Collaboration diagram for point2d_t< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 point2d_t (IN T in_x=0, IN T in_y=0) throw ()
 point2d_t (IN const point2d_t &pt) throw ()
void set (IN T in_x, IN T in_y) throw ()
void clear (void) throw ()
void dump (const char *title) const throw ()
 dumps contents to stderr
point2d_t operator- (IN const point2d_t &rhs) const throw ()
 vector subtraction
point2d_t operator+ (IN const point2d_t &rhs) const throw ()
 vector addition
void normalize (void) throw ()

Static Public Member Functions

static T dotProduct (IN const point2d_t &u, IN const point2d_t &v) throw ()

Public Attributes

x
y

Detailed Description

template<class T>
struct point2d_t< T >

Template for two-dimensional point.

Definition at line 71 of file geometry_2d.h.


Constructor & Destructor Documentation

template<class T>
point2d_t< T >::point2d_t ( IN T  in_x = 0,
IN T  in_y = 0 
) throw () [inline]

Definition at line 73 of file geometry_2d.h.


The documentation for this struct was generated from the following file: