Arrow Primitive.
More...
#include <primitive.h>
|
| | Arrow (double length, double radius, double headlength=-1, double headradius=-1) |
| | Specifies arrow length, radius, head length, and head radius. More...
|
| |
| | Arrow (const Vector3 &start, const Vector3 &end, double radius, double headlength=-1, double headradius=-1) |
| | Specifies start and end coordinates, as well as radius, head length, and head radius. More...
|
| |
|
void | draw () |
| | Draw primitive and its children.
|
| |
| | Primitive () |
| | Default constructor. More...
|
| |
| | Object () |
| | Default constructor. More...
|
| |
| template<class T > |
| T * | attach (T *child) |
| | Add child to list of sub-objects. More...
|
| |
Arrow Primitive.
Consists of a Cylinder body and a Cone head.
◆ Arrow() [1/2]
| pgl::Arrow::Arrow |
( |
double |
length, |
|
|
double |
radius, |
|
|
double |
headlength = -1, |
|
|
double |
headradius = -1 |
|
) |
| |
|
inline |
Specifies arrow length, radius, head length, and head radius.
When not specified, head length is radius*6, while head radius is head length/2.
◆ Arrow() [2/2]
| pgl::Arrow::Arrow |
( |
const Vector3 & |
start, |
|
|
const Vector3 & |
end, |
|
|
double |
radius, |
|
|
double |
headlength = -1, |
|
|
double |
headradius = -1 |
|
) |
| |
|
inline |
Specifies start and end coordinates, as well as radius, head length, and head radius.
When not specified, head length is radius*6, while head radius is head length/2.
The documentation for this class was generated from the following file: