Horizon
Public Member Functions | Public Attributes | List of all members
p2t::Point Struct Reference

Public Member Functions

 Point ()
 Default constructor does nothing (for performance).
 
 Point (double x, double y)
 Construct using coordinates.
 
void set_zero ()
 Set this point to all zeros.
 
void set (double x_, double y_)
 Set this point to some specified coordinates.
 
Point operator- () const
 Negate this point.
 
void operator+= (const Point &v)
 Add a point to this point.
 
void operator-= (const Point &v)
 Subtract a point from this point.
 
void operator*= (double a)
 Multiply this point by a scalar.
 
double Length () const
 Get the length of this point (the norm).
 
double Normalize ()
 Convert this point into a unit point. Returns the Length.
 
 Point ()
 Default constructor does nothing (for performance).
 
 Point (double x, double y)
 Construct using coordinates.
 
void set_zero ()
 Set this point to all zeros.
 
void set (double x_, double y_)
 Set this point to some specified coordinates.
 
Point operator- () const
 Negate this point.
 
void operator+= (const Point &v)
 Add a point to this point.
 
void operator-= (const Point &v)
 Subtract a point from this point.
 
void operator*= (double a)
 Multiply this point by a scalar.
 
double Length () const
 Get the length of this point (the norm).
 
double Normalize ()
 Convert this point into a unit point. Returns the Length.
 

Public Attributes

double x
 
double y
 
std::vector< Edge * > edge_list
 The edges this point constitutes an upper ending point.
 

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