step/stepcore
StepCore::Anchor Class Reference
[Rigid joints]
#include <joint.h>
List of all members.
Detailed Description
Fixes position of the body.
Definition at line 37 of file joint.h.
Constructor & Destructor Documentation
| StepCore::Anchor::Anchor |
( |
Object * |
body = 0, |
|
|
const Vector2d & |
position = Vector2d(0), |
|
|
double |
angle = 0 | |
|
) |
| | [explicit] |
Member Function Documentation
| double StepCore::Anchor::angle |
( |
|
) |
const [inline] |
Get angle of the anchor.
Definition at line 56 of file joint.h.
| Object* StepCore::Anchor::body |
( |
|
) |
const [inline] |
Get pointer to the body.
Definition at line 46 of file joint.h.
| int StepCore::Anchor::constraintsCount |
( |
|
) |
[virtual] |
| void StepCore::Anchor::getConstraintsInfo |
( |
ConstraintsInfo * |
info, |
|
|
int |
offset | |
|
) |
| | [virtual] |
Fill the part of constraints information structure starting at offset.
Implements StepCore::Joint.
Definition at line 88 of file joint.cc.
| const Vector2d& StepCore::Anchor::position |
( |
|
) |
const [inline] |
Get position of the anchor.
Definition at line 51 of file joint.h.
| void StepCore::Anchor::setAngle |
( |
double |
angle |
) |
[inline] |
Set angle of the anchor.
Definition at line 58 of file joint.h.
| void StepCore::Anchor::setBody |
( |
Object * |
body |
) |
|
Set pointer to the body.
Definition at line 61 of file joint.cc.
| void StepCore::Anchor::setPosition |
( |
const Vector2d & |
position |
) |
[inline] |
Set position of the anchor.
Definition at line 53 of file joint.h.
Member Data Documentation
The documentation for this class was generated from the following files: