![]() |
PeriDyno 1.2.1
|
#include <Primitive2D.h>

Public Types | |
| typedef Vector< Real, 2 > | Coord2D |
Public Member Functions | |
| TPolygon2D () | |
| ~TPolygon2D () | |
| void | setAsBox (Real hx, Real hy) |
| void | setAsPentagon (const Coord2D &v0, const Coord2D &v1, const Coord2D &v2, const Coord2D &v3, const Coord2D &v4) |
| void | setAsTriangle (const Coord2D &v0, const Coord2D &v1, const Coord2D &v2) |
| void | setAsLine (const Coord2D &v0, const Coord2D &v1) |
| const uint | vertexSize () const |
| const Coord2D & | vertex (uint i) const |
| const Coord2D & | normal (uint i) const |
| const Coord2D & | center () const |
| void | setCenter (const Coord2D &c) |
| void | setVertex (const uint i, const Coord2D &v) |
| Real | radius () const |
| TAlignedBox2D< Real > | aabb () |
Private Attributes | |
| Coord2D | _center |
| Coord2D | _vertices [MAX_POLYGON_VERTEX_NUM] |
| Coord2D | _normals [MAX_POLYGON_VERTEX_NUM] |
| uint | size = 0 |
| Real | _radius = 0.005f |
Definition at line 269 of file Primitive2D.h.
| typedef Vector<Real, 2> dyno::TPolygon2D< Real >::Coord2D |
Definition at line 272 of file Primitive2D.h.
| dyno::TPolygon2D< Real >::TPolygon2D | ( | ) |
Definition at line 917 of file Primitive2D.inl.
| dyno::TPolygon2D< Real >::~TPolygon2D | ( | ) |
Definition at line 923 of file Primitive2D.inl.
| TAlignedBox2D< Real > dyno::TPolygon2D< Real >::aabb | ( | ) |
Definition at line 985 of file Primitive2D.inl.
|
inline |
Definition at line 290 of file Primitive2D.h.
|
inline |
Definition at line 289 of file Primitive2D.h.
|
inline |
Definition at line 295 of file Primitive2D.h.
| void dyno::TPolygon2D< Real >::setAsBox | ( | Real | hx, |
| Real | hy ) |
Definition at line 930 of file Primitive2D.inl.
| void dyno::TPolygon2D< Real >::setAsLine | ( | const Coord2D & | v0, |
| const Coord2D & | v1 ) |
Definition at line 974 of file Primitive2D.inl.
| void dyno::TPolygon2D< Real >::setAsPentagon | ( | const Coord2D & | v0, |
| const Coord2D & | v1, | ||
| const Coord2D & | v2, | ||
| const Coord2D & | v3, | ||
| const Coord2D & | v4 ) |
Definition at line 948 of file Primitive2D.inl.
| void dyno::TPolygon2D< Real >::setAsTriangle | ( | const Coord2D & | v0, |
| const Coord2D & | v1, | ||
| const Coord2D & | v2 ) |
Definition at line 962 of file Primitive2D.inl.
|
inline |
Definition at line 292 of file Primitive2D.h.
|
inline |
Definition at line 293 of file Primitive2D.h.
|
inline |
Definition at line 288 of file Primitive2D.h.
|
inline |
Definition at line 286 of file Primitive2D.h.
|
private |
Definition at line 300 of file Primitive2D.h.
|
private |
Definition at line 302 of file Primitive2D.h.
|
private |
Definition at line 305 of file Primitive2D.h.
|
private |
Definition at line 301 of file Primitive2D.h.
|
private |
Definition at line 304 of file Primitive2D.h.