32 Arrow(uint32_t
id = 0u,
const V3Arg &origin =
V3Arg(0, 0, 0),
const V3Arg &dir = DefaultDirection,
float length = 1.0f,
float radius = 0.025f);
40 Arrow(uint32_t
id, uint16_t category,
const V3Arg &origin =
V3Arg(0, 0, 0),
const V3Arg &dir =
V3Arg(0, 0, 1),
float length = 1.0f,
float radius = 0.025f);
45 Arrow &setRadius(
float radius);
53 Arrow &setLength(
float length);
90 setScale(
Vector3f(radius, radius, length));
95 :
Shape(SIdArrow, id, category)
99 setScale(
Vector3f(radius, radius, length));
149 if (direction.
v3.
dot(DefaultDirection) > -0.9998f)
169 #endif // _3ESARROW_H_ A base class for encapsulating a shape which is to be represented remotely.
Definition: 3esshape.h:39
Arrow & setOrigin(const V3Arg &origin)
Set the arrow origin.
Definition: 3esarrow.h:133
static const Vector3< T > axisx
The vector (1, 0, 0).
Definition: 3esvector3.h:44
Defines an arrow shape to display.
Definition: 3esarrow.h:21
static const Vector3f DefaultDirection
Default direction used as a reference orientation for packing the rotation.
Definition: 3esarrow.h:29
Arrow & setLength(float length)
Set the arrow length from base to tip.
Definition: 3esarrow.h:118
Definition: 3esbounds.h:13
Vector3< float > Vector3f
Defines a single precision vector.
Definition: 3esvector3.h:14
Quaternion< T > & setAxisAngle(const Vector3< T > &axis, const T &angle)
Sets this quaternion from an axis of rotation and the angle of rotation about that axis (radians)...
Vector3f v3
Vector 3 value.
Definition: 3esv3arg.h:45
Represents a vector in R3.
Definition: 3esvector3.h:14
A helper structure used to convert from float or double pointers to Vector3f arguments.
Definition: 3esv3arg.h:14
Arrow & setRadius(float radius)
Set the arrow radius.
Definition: 3esarrow.h:103
T x
Direct data member access.
Definition: 3esvector3.h:30
float length() const
Get the arrow length from base to tip.
Definition: 3esarrow.h:127
Arrow(uint32_t id=0u, const V3Arg &origin=V3Arg(0, 0, 0), const V3Arg &dir=DefaultDirection, float length=1.0f, float radius=0.025f)
Definition: 3esarrow.h:85
Vector3f origin() const
Get the arrow base position.
Definition: 3esarrow.h:140
Arrow & setDirection(const V3Arg &direction)
Set the arrow direction vector.
Definition: 3esarrow.h:146
Quaternion< float > Quaternionf
Defines a single precision quaternion.
Definition: 3esquaternion.h:198
T dot(const Vector3< T > &other) const
Calculates the dot product of this.other.
Definition: 3esvector3.h:422
Vector3f direction() const
Get the arrow direction vector.
Definition: 3esarrow.h:162
float radius() const
Get the arrow radius.
Definition: 3esarrow.h:112