Structural deformable models
Public Member Functions | Public Attributes | List of all members
IPoint2D Class Reference

#include <Point.h>

Inheritance diagram for IPoint2D:
Inheritance graph
[legend]
Collaboration diagram for IPoint2D:
Collaboration graph
[legend]

Public Member Functions

 IPoint2D ()
 
 IPoint2D (int _i, float _x, float _y)
 
 IPoint2D (int _i, const Point2D &p)
 
IPoint2Doperator= (const IPoint2D &rhs)
 
IPoint2Doperator= (const Point2D &rhs)
 
- Public Member Functions inherited from Point2D
 Point2D ()
 
 Point2D (const Point2D &rhs)
 
 Point2D (float _x, float _y)
 
 Point2D (const float *val)
 
virtual ~Point2D ()
 
Point2Doperator= (const Point2D &rhs)
 
Point2Doperator= (float rhs)
 
Point2Doperator= (const float *rhs)
 
Point2Doperator+= (const Point2D &rhs)
 
Point2Doperator-= (const Point2D &rhs)
 
Point2Doperator*= (const Point2D &rhs)
 
Point2Doperator*= (const float f)
 
Point2Doperator/= (const Point2D &rhs)
 
Point2Doperator/= (const float f)
 
float operator* (const Point2D &rhs) const
 
const Point2Dconst_times (const Point2D &rhs) const
 
Point2Dtimes (const Point2D &rhs)
 
float dot (const Point2D &rhs) const
 
float crossZ (const Point2D &rhs) const
 
float sinAngle (const Point2D &rhs) const
 
float angle (const Point2D &rhs=Point2D(1, 0)) const
 
float sinAngleX () const
 
float angleX () const
 
Point2D operator* (float rhs) const
 
Point2D operator+ (const Point2D &rhs) const
 
Point2D operator- (const Point2D &rhs) const
 
Point2D operator/ (const Point2D &rhs) const
 
Point2D operator/ (float rhs) const
 
float sum () const
 returns 1-norm More...
 
float norm2 () const
 returns squared 2-norm More...
 
float norm () const
 returns 2-norm aka length or absolute More...
 
float normalize ()
 normalizes the vector; returns old norm More...
 
bool clamp (float x0, float y0, float x1, float y1)
 
void glVertex () const
 Issue a glVertex2f call. More...
 
const Point2D flipOrtho () const
 
const Point2D copyNormalized () const
 
const Point2D rotate (float angle) const
 

Public Attributes

int index
 
- Public Attributes inherited from Point2D
float x
 
float y
 

Detailed Description

Definition at line 228 of file Point.h.

Constructor & Destructor Documentation

IPoint2D::IPoint2D ( )
inline

Definition at line 231 of file Point.h.

231 : Point2D() {};
Point2D()
Definition: Point.h:18
IPoint2D::IPoint2D ( int  _i,
float  _x,
float  _y 
)
inline

Definition at line 232 of file Point.h.

232 : Point2D(_x, _y), index(_i) {}
Point2D()
Definition: Point.h:18
int index
Definition: Point.h:248
IPoint2D::IPoint2D ( int  _i,
const Point2D p 
)
inline

Definition at line 233 of file Point.h.

References Point2D::operator=().

233  {
234  operator=(p);
235  index = _i;
236  }
IPoint2D & operator=(const IPoint2D &rhs)
Definition: Point.h:237
int index
Definition: Point.h:248

Member Function Documentation

IPoint2D& IPoint2D::operator= ( const IPoint2D rhs)
inline

Definition at line 237 of file Point.h.

References index, and Point2D::operator=().

237  {
238  Point2D::operator=(rhs);
239  index = rhs.index;
240  return *this;
241  }
Point2D & operator=(const Point2D &rhs)
Definition: Point.h:27
int index
Definition: Point.h:248
IPoint2D& IPoint2D::operator= ( const Point2D rhs)
inline

Definition at line 242 of file Point.h.

References Point2D::operator=().

242  {
243  Point2D::operator=(rhs);
244  index = -1;
245  return *this;
246  }
Point2D & operator=(const Point2D &rhs)
Definition: Point.h:27
int index
Definition: Point.h:248

Member Data Documentation

int IPoint2D::index

Definition at line 248 of file Point.h.

Referenced by operator=().


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