Structural deformable models
|
#include <Point.h>
Public Member Functions | |
Point2D () | |
Point2D (const Point2D &rhs) | |
Point2D (float _x, float _y) | |
Point2D (const float *val) | |
virtual | ~Point2D () |
Point2D & | operator= (const Point2D &rhs) |
Point2D & | operator= (float rhs) |
Point2D & | operator= (const float *rhs) |
Point2D & | operator+= (const Point2D &rhs) |
Point2D & | operator-= (const Point2D &rhs) |
Point2D & | operator*= (const Point2D &rhs) |
Point2D & | operator*= (const float f) |
Point2D & | operator/= (const Point2D &rhs) |
Point2D & | operator/= (const float f) |
float | operator* (const Point2D &rhs) const |
const Point2D & | const_times (const Point2D &rhs) const |
Point2D & | times (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 | |
float | x |
float | y |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Point2D &p) |
std::istream & | operator>> (std::istream &is, Point2D &p) |
bool | operator== (const Point2D &lhs, const Point2D &rhs) |
bool | operator!= (const Point2D &lhs, const Point2D &rhs) |
|
inline |
|
inline |
|
inline |
Definition at line 93 of file Point.h.
References crossZ(), dot(), M_1_PI, and M_PI.
Referenced by StructTable::adjustByAvgDir(), angleX(), Model::getNodeAngle(), and setPropSDir().
|
inline |
Definition at line 123 of file Point.h.
References angle(), and Point2D().
Referenced by Edge::getAngle().
|
inline |
Definition at line 181 of file Point.h.
|
inline |
Definition at line 206 of file Point.h.
References normalize().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
returns 2-norm aka length or absolute
Definition at line 170 of file Point.h.
References dmutil::sqrt(), x, and y.
Referenced by Model::calculateForces(), normalize(), setPropSDir(), and sinAngleX().
|
inline |
returns squared 2-norm
Definition at line 165 of file Point.h.
Referenced by Edge::length2(), and sinAngle().
|
inline |
normalizes the vector; returns old norm
Definition at line 175 of file Point.h.
References norm(), and operator*=().
Referenced by Model::addTorque(), CornerSensor::calcValue(), and copyNormalized().
|
inline |
|
inline |
Definition at line 27 of file Point.h.
Referenced by IPoint2D::IPoint2D(), Node::operator=(), IPoint2D::operator=(), Point2D(), and Node::setPos().
|
inline |
Definition at line 211 of file Point.h.
References Point2D(), x, and y.
Referenced by StructTable::adjustByAvgDir(), getPropSDir(), and Model::rotate().
|
inline |
|
inline |
Definition at line 78 of file Point.h.
Referenced by const_times().
Definition at line 219 of file Point.h.
|
friend |
|
friend |
float Point2D::x |
Definition at line 224 of file Point.h.
Referenced by Node::addSensorForce(), Searcher::buildBins(), Searcher::buildClusters(), MCGSensor::calcGradient(), CornerSensor::calcValue(), clamp(), crossZ(), Model::distance(), dot(), Node::draw(), Brain::drawAllModels(), flipOrtho(), Sensor::getGradient(), Sensor::getValue(), glVertex(), Dataset::load(), norm(), norm2(), operator*(), operator*=(), operator+=(), operator-=(), operator/=(), operator=(), Model::readNode(), rotate(), setPropPos(), sinAngle(), and sum().
float Point2D::y |
Definition at line 224 of file Point.h.
Referenced by Node::addSensorForce(), Searcher::buildBins(), Searcher::buildClusters(), MCGSensor::calcGradient(), CornerSensor::calcValue(), clamp(), crossZ(), Model::distance(), dot(), Node::draw(), Brain::drawAllModels(), flipOrtho(), Sensor::getGradient(), Sensor::getValue(), glVertex(), Dataset::load(), norm(), norm2(), operator*(), operator*=(), operator+=(), operator-=(), operator/=(), operator=(), Model::readNode(), rotate(), setPropPos(), sinAngle(), sinAngleX(), and sum().