RigidContour Area.
More...
#include <area.h>
List of all members.
Public Member Functions |
| | Area (const std::string &name) |
| | constructor
|
| std::string | getType () const |
|
virtual void | init (InitStage stage) |
| | TODO.
|
|
void | setLimitY (double l) |
|
void | setLimitZ (double l) |
|
double | getLimitY () const |
|
double | getLimitZ () const |
|
const fmatvec::Vec3 & | getA () const |
|
const fmatvec::Vec3 & | getB () const |
|
const fmatvec::Vec3 & | getC () const |
|
const fmatvec::Vec3 & | getD () const |
| bool | PointInArea (const fmatvec::Vec3 &Point) |
| | if the point and area are on the same plane by default, this function checks if a point lies in the area; else this function checks if the projection of the point lies in the area;
|
| bool | PointInCircle (const fmatvec::Vec3 &Point, const fmatvec::Vec3 &CenCir, const double &radius) |
| | check if a point lies in the circle (point and circle are on the same plane)
|
| fmatvec::Vec3 | Point_closest_toCircle_onLineseg (const fmatvec::Vec3 &EndP1, const fmatvec::Vec3 &EndP2, const fmatvec::Vec3 &CenCir) |
| | search the closest point on the line segment to a circle
|
| bool | Intersect_Circle (const double &radius, const fmatvec::Vec3 &CenCir) |
| | check if this area(rectangle) intersect with a circle,
|
Protected Attributes |
|
double | limy |
|
double | limz |
|
fmatvec::Vec3 | RrA |
| | vertex for y = limy/2, z = limz/2
|
|
fmatvec::Vec3 | RrB |
| | vertex for y = -limy/2, z = limz/2
|
|
fmatvec::Vec3 | RrC |
| | vertex for y = -limy/2, z = -limz/2
|
|
fmatvec::Vec3 | RrD |
| | vertex for y = limy/2, z = -limz/2
|
Private Member Functions |
|
void | setVertices () |
| | set the verticies positions
|
Detailed Description
RigidContour Area.
- Date:
- 2009-07-14 some comments (Bastian Esefeld)
-
2009-07-16 new file (Bastian Esefeld)
Constructor & Destructor Documentation
Member Function Documentation
- Returns:
- std::string representation
Reimplemented from MBSim::Plane.
check if this area(rectangle) intersect with a circle,
- Parameters:
-
| radius | radius of the circle |
| CenCir | center of the circle in world coordinates |
- Returns:
- true: this area intersects the circle
- Attention:
- : the circle is the intersection circle between the sphere and the plane, thus the center of the circle is different from the center of the sphere.
search the closest point on the line segment to a circle
- Parameters:
-
| EndP1,EndP2,: | end points of the line segment; CenCir: center of the circle. |
if the point and area are on the same plane by default, this function checks if a point lies in the area; else this function checks if the projection of the point lies in the area;
- Parameters:
-
| Point,: | position of the point |
- Returns:
- true: point in the area
check if a point lies in the circle (point and circle are on the same plane)
- Parameters:
-
| Point | position of the point |
| CenCir | center of the circle |
| radius | radius of the circle. |
- Returns:
- true: point in the circle, else false
The documentation for this class was generated from the following file: