Inkscape
Vector Graphics Editor
|
The Point class defines a point in the plane. More...
#include <geomtypes.h>
Public Member Functions | |
Point () | |
Default constructor. | |
Point (const double xv, const double yv) | |
Standard constructor. | |
bool | operator== (const Point &rhs) const |
Comparison operator. | |
bool | equals (const Point &rhs, double epsilon=0.0001) const |
Comparison operator. | |
bool | operator!= (const Point &rhs) const |
Comparison operator. | |
bool | operator< (const Point &rhs) const |
Comparison operator. | |
double & | operator[] (const size_t dimension) |
Returns the x or y value of the point, given the dimension. | |
const double & | operator[] (const size_t dimension) const |
Point | operator+ (const Point &rhs) const |
Point | operator- (const Point &rhs) const |
Public Attributes | |
double | x |
The x position. | |
double | y |
The y position. | |
unsigned int | id |
The ID associated with this point. | |
unsigned short | vn |
The vertex number associated with this point. | |
The Point class defines a point in the plane.
Points consist of an x and y value. They may also have an ID and vertex number associated with them.
Definition at line 52 of file geomtypes.h.
Avoid::Point::Point | ( | ) |
Default constructor.
Definition at line 41 of file geomtypes.cpp.
Referenced by operator+(), and operator-().
Standard constructor.
[in] | xv | The x position of the point. |
[in] | yv | The y position of the point. |
Definition at line 48 of file geomtypes.cpp.
Comparison operator.
Returns true if at same position, or at effectively the same position for a given value of epsilson.
[in] | rhs | The point to compare with this one. |
[in] | epsilon | Value of epsilon to use during comparison. |
Definition at line 77 of file geomtypes.cpp.
Comparison operator.
Returns true if at different positions.
[in] | rhs | The point to compare with this one. |
Definition at line 67 of file geomtypes.cpp.
Definition at line 111 of file geomtypes.cpp.
Definition at line 117 of file geomtypes.cpp.
Comparison operator.
Returns true if less-then rhs point.
[in] | rhs | The point to compare with this one. |
Definition at line 88 of file geomtypes.cpp.
Comparison operator.
Returns true if at same position.
[in] | rhs | The point to compare with this one. |
Definition at line 57 of file geomtypes.cpp.
Returns the x or y value of the point, given the dimension.
[in] | dimension | The dimension: 0 for x, 1 for y. |
Definition at line 98 of file geomtypes.cpp.
Definition at line 105 of file geomtypes.cpp.
The ID associated with this point.
Definition at line 111 of file geomtypes.h.
Referenced by Avoid::constructPolygonPath(), Avoid::ConnectorCrossings::countForSegment(), Avoid::ConnRef::generateCheckpointsPath(), Avoid::ConnRef::generatePath(), Avoid::ConnRef::generateStandardPath(), makeFeasible(), Avoid::PolygonInterface::offsetPolygon(), Avoid::VertInf::Reset(), Avoid::VertInf::Reset(), and Avoid::VertInf::VertInf().
The vertex number associated with this point.
Definition at line 113 of file geomtypes.h.
Referenced by Avoid::ConnectorCrossings::countForSegment(), Avoid::ConnRef::generatePath(), Avoid::ConnRef::generateStandardPath(), makeFeasible(), Avoid::midVertexNumber(), Avoid::PolygonInterface::offsetPolygon(), Avoid::ShapeConnectionPin::position(), Avoid::VertInf::Reset(), Avoid::VertInf::Reset(), Avoid::splitBranchingSegments(), and Avoid::VertInf::VertInf().
double Avoid::Point::x |
The x position.
Definition at line 107 of file geomtypes.h.
Referenced by Avoid::angle(), Avoid::angleBetween(), Avoid::colinear(), Avoid::cost(), Avoid::ConnectorCrossings::countForSegment(), Avoid::CrossLength(), Avoid::VertInf::directionFrom(), Avoid::dist(), Avoid::Dot(), equals(), Avoid::estimatedCostSpecific(), Avoid::euclideanDist(), Avoid::Router::existsInvalidOrthogonalPaths(), Avoid::ConnRef::generateStandardPath(), Avoid::ConnRef::getConnEndForEndpointVertex(), Avoid::MinimumTerminalSpanningTree::getOrthogonalEdgesFromVertex(), Avoid::inBetween(), Avoid::inPolyGen(), Avoid::EdgeInf::isOrthogonal(), Avoid::Box::length(), main(), Avoid::JunctionRef::makeRectangle(), Avoid::manhattanDist(), Avoid::Router::markPolylineConnectorsNeedingReroutingForDeletedObstacle(), Avoid::midpoint(), Avoid::midVertexNumber(), Avoid::Router::moveJunction(), Avoid::Node::Node(), Avoid::Node::Node(), Avoid::PolygonInterface::offsetBoundingBox(), operator!=(), operator+(), operator-(), operator<(), operator==(), operator[](), operator[](), Avoid::orthogonalDirection(), Avoid::orthogTurnOrder(), Avoid::ConnEnd::outputCode(), Avoid::Router::outputDiagramSVG(), Avoid::Router::outputDiagramText(), Avoid::HyperedgeTreeNode::outputEdgesExcept(), Avoid::HyperedgeImprover::outputHyperedgesToSVG(), Avoid::Router::outputInstanceToSVG(), Avoid::pointOnLine(), Avoid::ShapeConnectionPin::position(), Avoid::ShapeRef::position(), Avoid::projection(), Avoid::rayIntersectPoint(), Avoid::MinimumTerminalSpanningTree::realVerticesCountingPartners(), Avoid::Rectangle::Rectangle(), Avoid::Rectangle::Rectangle(), Avoid::rotationalAngle(), Avoid::EdgeInf::rotationLessThan(), Avoid::segDir(), Avoid::segmentIntersectPoint(), Avoid::ShapeRef::setCentrePos(), Avoid::Obstacle::shapeCentre(), Avoid::ConnRef::splitAtSegment(), Avoid::unitNormalForEdge(), Avoid::validateBendPoint(), Avoid::vecDir(), and Avoid::Box::width().
double Avoid::Point::y |
The y position.
Definition at line 109 of file geomtypes.h.
Referenced by Avoid::angle(), Avoid::angleBetween(), Avoid::colinear(), Avoid::cost(), Avoid::ConnectorCrossings::countForSegment(), Avoid::CrossLength(), Avoid::VertInf::directionFrom(), Avoid::dist(), Avoid::Dot(), equals(), Avoid::estimatedCostSpecific(), Avoid::euclideanDist(), Avoid::Router::existsInvalidOrthogonalPaths(), Avoid::ConnRef::generateStandardPath(), Avoid::ConnRef::getConnEndForEndpointVertex(), Avoid::MinimumTerminalSpanningTree::getOrthogonalEdgesFromVertex(), Avoid::Box::height(), Avoid::inBetween(), Avoid::inPolyGen(), Avoid::EdgeInf::isOrthogonal(), Avoid::Box::length(), Avoid::JunctionRef::makeRectangle(), Avoid::manhattanDist(), Avoid::Router::markPolylineConnectorsNeedingReroutingForDeletedObstacle(), Avoid::midpoint(), Avoid::midVertexNumber(), Avoid::Router::moveJunction(), Avoid::Node::Node(), Avoid::Node::Node(), Avoid::PolygonInterface::offsetBoundingBox(), operator!=(), operator+(), operator-(), operator<(), operator==(), operator[](), operator[](), Avoid::orthogonalDirection(), Avoid::orthogTurnOrder(), Avoid::ConnEnd::outputCode(), Avoid::Router::outputDiagramSVG(), Avoid::Router::outputDiagramText(), Avoid::HyperedgeTreeNode::outputEdgesExcept(), Avoid::HyperedgeImprover::outputHyperedgesToSVG(), Avoid::Router::outputInstanceToSVG(), Avoid::pointOnLine(), Avoid::ShapeConnectionPin::position(), Avoid::ShapeRef::position(), Avoid::projection(), Avoid::rayIntersectPoint(), Avoid::Rectangle::Rectangle(), Avoid::Rectangle::Rectangle(), Avoid::rotationalAngle(), Avoid::EdgeInf::rotationLessThan(), Avoid::segDir(), Avoid::segmentIntersectPoint(), Avoid::ShapeRef::setCentrePos(), Avoid::Obstacle::shapeCentre(), test(), Avoid::unitNormalForEdge(), Avoid::validateBendPoint(), Avoid::vecDir(), and Avoid::vertexSweep().