AURobotServers
4
|
#include <u2dline.h>
Public Member Functions | |
UMatrix4 | asCol2 () |
UMatrix4 | asCol3 () |
UMatrix4 | asRow2 () |
UMatrix4 | asRow3 () |
void | clear () |
double | dist () |
double | dist (UPosition b) |
double | dist (U2Dpos b) |
double | heading () |
double | length () |
U2Dpos | operator= (UPosition pos) |
U2Dpos | operator= (U2Dseg seg) |
void | set (double ix, double iy) |
U2Dpos (double ix, double iy) | |
U2Dpos () | |
Public Attributes | |
double | x |
double | y |
A simple class for a 2D position in double precition.
|
inline |
initialized constructor
|
inline |
uninitialized constructor
UMatrix4 U2Dpos::asCol2 | ( | ) |
position as [x,y] column.
References UMatrix::set().
UMatrix4 U2Dpos::asCol3 | ( | ) |
UMatrix4 U2Dpos::asRow2 | ( | ) |
position as [x,y] row.
References UMatrix::set().
UMatrix4 U2Dpos::asRow3 | ( | ) |
position as homogenous [x,y,1] row.
References UMatrix::set().
|
inline |
clear 2D value
Referenced by ULaserMeasurement::clear(), and ULaserData::get2d().
|
inline |
get distance or length of this 2D vector
Referenced by UAvoidVertexIdx::extent4thPnt(), UAvoidVertexCosts::getExtraCost(), UAvoidVertexCosts::setExtraCost(), and UNavPaint::toPixels().
|
inline |
get distance from this to other position (2D)
b | is the other position. |
References UPosition::x, and UPosition::y.
|
inline |
|
inline |
Length of vector
|
inline |
Length of vector
Referenced by UNamedBox::doDetect().
set from 3D position
References UPosition::x, and UPosition::y.
|
inline |
double U2Dpos::x |
positiin
Referenced by ULineMatch::addToPoly(), ULaserMeasurement::clear(), UFuncLoca2::correlateLines(), UAvoidPath2::createMidPathPoints(), dist(), UNamedBox::doDetect(), UAvoidPath2::expandPolyToSegment(), UAvoidVertexIdx::extent4thPnt(), UAvoidCellGraph::fillVerticeList(), UAvoidCellGraph::findBestCellPath(), UAvoidCellGraph::findCellPath(), UAvoidCellGraph::findCellPointPath(), UAvoidPath2::findObstAvoidRoute(), UResRoseBot::findRows(), ULaserData::get2d(), UPose2pose::get2line(), UPose2pose::get2lineStartLeft(), U2Dseg::getDistanceSigned(), UAvoidPath2::getManAsPolygon(), UPose::getMapToPose(), UResMapObst::getNearObstacles(), UAvoidVertexIdx::getPktType1(), UAvoidVertexIdx::getPktType2(), UPose::getPoseToMap(), U2Dseg::getPositionOnLine(), UAvoidVertexIdx::getUpper(), UFuncRoseBot::handleCommand(), UAvoidPath2::insertNewPointAfter(), U2Dseg::isCrossing(), UAvoidVertexCosts::list(), UAvoidCellGraph::makeCells(), UResLobst::makeObst(), UResLobst::makeObstGroups(), UResLocater::makeRowPolygon(), UFuncLoca2::markBestJointMatches(), UResLocater::match_points(), UPosition::operator=(), operator=(), UAvoidVertexCost::print(), UAvoidCellGraph::printVetrexList(), U2Dseg::setFromPoints(), test2Dseg(), UFuncLobst::testMethodCall(), testPoseMatrix(), UNavPaint::toPixels(), UAvoidPoint::tPointVisible(), UV360Scan::update(), and UResV360::update().
double U2Dpos::y |
Referenced by ULineMatch::addToPoly(), ULaserMeasurement::clear(), UFuncLoca2::correlateLines(), UAvoidPath2::createMidPathPoints(), dist(), UNamedBox::doDetect(), UAvoidPath2::expandPolyToSegment(), UAvoidVertexIdx::extent4thPnt(), UAvoidCellGraph::fillVerticeList(), UAvoidCellGraph::findBestCellPath(), UAvoidCellGraph::findCellPath(), UAvoidCellGraph::findCellPointPath(), UAvoidPath2::findObstAvoidRoute(), UResRoseBot::findRows(), ULaserData::get2d(), UPose2pose::get2line(), UPose2pose::get2lineStartLeft(), U2Dseg::getDistanceSigned(), UAvoidPath2::getManAsPolygon(), UPose::getMapToPose(), UResMapObst::getNearObstacles(), UAvoidVertexIdx::getPktType2(), UPose::getPoseToMap(), U2Dseg::getPositionOnLine(), UAvoidVertexIdx::getUpper(), UFuncRoseBot::handleCommand(), UAvoidPath2::insertNewPointAfter(), U2Dseg::isCrossing(), UAvoidCellGraph::makeCells(), UResLobst::makeObst(), UResLobst::makeObstGroups(), UResLocater::makeRowPolygon(), UFuncLoca2::markBestJointMatches(), UResLocater::match_points(), UPosition::operator=(), operator=(), UAvoidVertexCost::print(), UAvoidCellGraph::printVetrexList(), UAvoidCell::setCuts(), U2Dseg::setFromPoints(), test2Dseg(), UFuncLobst::testMethodCall(), testPoseMatrix(), UNavPaint::toPixels(), UAvoidPoint::tPointVisible(), UV360Scan::update(), and UResV360::update().