#include <point.h>

Public Member Functions | |
| Point2D () | |
| Point2D (double xv, double yv) | |
| ~Point2D () | |
| Point2D (const Point2D &other) | |
| unsigned int | dimension () const |
| double | operator[] (unsigned int i) const |
| double & | operator[] (unsigned int i) |
| Point2D & | operator= (const Point2D &other) |
| Point2D & | operator+= (const Point2D &other) |
| Point2D & | operator-= (const Point2D &other) |
| Point2D & | operator*= (double scale) |
| Point2D & | operator/= (double scale) |
| Point2D | operator- () const |
| void | normalize () |
| void | rotate90 () |
| double | length () const |
| double | lengthSq () const |
| double | dotProduct (const Point2D &other) const |
| double | angleTo (const Point2D &other) const |
| double | signedAngleTo (const Point2D &other) const |
| Point2D | directionVector (const Point2D &other) const |
Public Attributes | |
| double | x |
| double | y |
Definition at line 245 of file point.h.
| unsigned int RDGeom::Point2D::dimension | ( | ) | const [inline, virtual] |
| double RDGeom::Point2D::operator[] | ( | unsigned int | i | ) | const [inline, virtual] |
Implements RDGeom::Point.
Definition at line 260 of file point.h.
References PRECONDITION, x, and y.
| double& RDGeom::Point2D::operator[] | ( | unsigned int | i | ) | [inline, virtual] |
Implements RDGeom::Point.
Definition at line 269 of file point.h.
References PRECONDITION, x, and y.
| Point2D& RDGeom::Point2D::operator*= | ( | double | scale | ) | [inline] |
| Point2D& RDGeom::Point2D::operator/= | ( | double | scale | ) | [inline] |
| Point2D RDGeom::Point2D::operator- | ( | ) | const [inline] |
| void RDGeom::Point2D::normalize | ( | ) | [inline, virtual] |
Implements RDGeom::Point.
Definition at line 316 of file point.h.
References length(), x, and y.
Referenced by angleTo(), RDDepict::computeNormal(), and directionVector().
| void RDGeom::Point2D::rotate90 | ( | ) | [inline] |
| double RDGeom::Point2D::length | ( | ) | const [inline, virtual] |
| double RDGeom::Point2D::lengthSq | ( | ) | const [inline, virtual] |
| double RDGeom::Point2D::dotProduct | ( | const Point2D & | other | ) | const [inline] |
| double RDGeom::Point2D::angleTo | ( | const Point2D & | other | ) | const [inline] |
Definition at line 343 of file point.h.
References dotProduct(), and normalize().
Referenced by RDDepict::computeAngle(), and signedAngleTo().
| double RDGeom::Point2D::signedAngleTo | ( | const Point2D & | other | ) | const [inline] |
| double RDGeom::Point2D::x |
Definition at line 247 of file point.h.
Referenced by RDDepict::computeNormal(), directionVector(), dotProduct(), length(), lengthSq(), normalize(), operator*=(), operator+=(), operator-(), operator-=(), operator/=(), operator=(), operator[](), rotate90(), RDDepict::rotationDir(), and signedAngleTo().
| double RDGeom::Point2D::y |
Definition at line 247 of file point.h.
Referenced by RDDepict::computeNormal(), directionVector(), dotProduct(), length(), lengthSq(), normalize(), operator*=(), operator+=(), operator-(), operator-=(), operator/=(), operator=(), operator[](), rotate90(), RDDepict::rotationDir(), and signedAngleTo().
1.5.6