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

List of all members.

Public Member Functions

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

Static Public Member Functions

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

Public Attributes


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_x = 0,
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: