![]() |
PeriDyno 1.2.1
|
1D geometric primitives in two-dimensional space More...
#include <Primitive2D.h>

Public Types | |
| typedef Vector< Real, 2 > | Coord2D |
Public Member Functions | |
| DYN_FUNC | TLine2D () |
| DYN_FUNC | TLine2D (const Coord2D &pos, const Coord2D &dir) |
| DYN_FUNC | TLine2D (const TLine2D< Real > &line) |
| DYN_FUNC TSegment2D< Real > | proximity (const TLine2D< Real > &line) const |
| DYN_FUNC TSegment2D< Real > | proximity (const TRay2D< Real > &ray) const |
| DYN_FUNC TSegment2D< Real > | proximity (const TSegment2D< Real > &segment) const |
| DYN_FUNC TSegment2D< Real > | proximity (const TCircle2D< Real > &circle) const |
| DYN_FUNC Real | distance (const TPoint2D< Real > &pt) const |
| DYN_FUNC Real | distance (const TLine2D< Real > &line) const |
| DYN_FUNC Real | distance (const TRay2D< Real > &ray) const |
| DYN_FUNC Real | distance (const TSegment2D< Real > &segment) const |
| DYN_FUNC Real | distanceSquared (const TPoint2D< Real > &pt) const |
| DYN_FUNC Real | distanceSquared (const TLine2D< Real > &line) const |
| DYN_FUNC Real | distanceSquared (const TRay2D< Real > &ray) const |
| DYN_FUNC Real | distanceSquared (const TSegment2D< Real > &segment) const |
| DYN_FUNC int | intersect (const TCircle2D< Real > &circle, TSegment2D< Real > &interSeg) const |
| DYN_FUNC Real | parameter (const Coord2D &pos) const |
| DYN_FUNC bool | isValid () const |
Public Attributes | |
| Coord2D | origin |
| Coord2D | direction |
1D geometric primitives in two-dimensional space
Definition at line 106 of file Primitive2D.h.
| typedef Vector<Real, 2> dyno::TLine2D< Real >::Coord2D |
Definition at line 109 of file Primitive2D.h.
| DYN_FUNC dyno::TLine2D< Real >::TLine2D | ( | ) |
| DYN_FUNC dyno::TLine2D< Real >::TLine2D | ( | const Coord2D & | pos, |
| const Coord2D & | dir ) |
| pos | |
| dir | = 0 indicate the line degenerates into a point |
Definition at line 218 of file Primitive2D.inl.
| DYN_FUNC dyno::TLine2D< Real >::TLine2D | ( | const TLine2D< Real > & | line | ) |
| DYN_FUNC Real dyno::TLine2D< Real >::distance | ( | const TSegment2D< Real > & | segment | ) | const |
| DYN_FUNC Real dyno::TLine2D< Real >::distanceSquared | ( | const TSegment2D< Real > & | segment | ) | const |
| DYN_FUNC int dyno::TLine2D< Real >::intersect | ( | const TCircle2D< Real > & | circle, |
| TSegment2D< Real > & | interSeg ) const |
| DYN_FUNC bool dyno::TLine2D< Real >::isValid | ( | ) | const |
| DYN_FUNC Real dyno::TLine2D< Real >::parameter | ( | const Coord2D & | pos | ) | const |
Definition at line 429 of file Primitive2D.inl.
| DYN_FUNC TSegment2D< Real > dyno::TLine2D< Real >::proximity | ( | const TCircle2D< Real > & | circle | ) | const |
| DYN_FUNC TSegment2D< Real > dyno::TLine2D< Real >::proximity | ( | const TLine2D< Real > & | line | ) | const |
Definition at line 232 of file Primitive2D.inl.


| DYN_FUNC TSegment2D< Real > dyno::TLine2D< Real >::proximity | ( | const TRay2D< Real > & | ray | ) | const |
| DYN_FUNC TSegment2D< Real > dyno::TLine2D< Real >::proximity | ( | const TSegment2D< Real > & | segment | ) | const |
| Coord2D dyno::TLine2D< Real >::direction |
Definition at line 146 of file Primitive2D.h.
| Coord2D dyno::TLine2D< Real >::origin |
Definition at line 143 of file Primitive2D.h.