Main Page | Class List | File List | Class Members | Examples

Point2D Class Reference

Simple 2D point and vector type. More...

List of all members.

Public Member Functions

 Point2D (const double x, const double y)
 Point2D (const double vect[2])
Point2D operator+ (const Point2D &pt) const
Point2D operator- (const Point2D &pt) const
Point2D operator * (double factor) const
Point2D operator/ (double factor) const
double d2 () const
 Returns the squared distance to the origin, or the squared length of a vector.


Public Attributes

double x
double y


Detailed Description

Simple 2D point and vector type.
Examples:

example.cpp, example2.cpp, and example3.cpp.

Definition at line 49 of file quasisampler_prototype.h.


The documentation for this class was generated from the following file:
Generated on Wed Aug 18 12:37:51 2004 for Quasi-Sampler by doxygen 1.3.7