43 VL_DEBUG_SET_OBJECT_NAME()
94 bill_to_eye = bill_to_eye -
axis() *
dot(bill_to_eye,
axis());
const Vector3 & normalize(T_Scalar *len=NULL)
Vector3< T_Scalar > getZ() const
Matrix4 & setX(const Vector3< T_Scalar > &v)
Vector3< T_Scalar > getY() const
fvec3 cross(const fvec3 &v1, const fvec3 &v2)
vec3 position()
The billboard position and rotation center.
void setPosition(const vec3 &pos)
The billboard position and rotation center.
void setAxis(const vec3 &axis)
The rotation axis in world coordinates. Used only for axis aligned billboards.
Visualization Library main namespace.
virtual void computeWorldMatrix(Camera *camera=NULL)
Computes the world matrix by concatenating the parent's world matrix with its own local matrix...
float dot(float a, float b)
Matrix4 & setZ(const Vector3< T_Scalar > &v)
void setNormal(const vec3 &normal)
Used only for axis aligned billboards.
const vec3 & normal() const
Used only for axis aligned billboards.
const mat4 & modelingMatrix() const
Returns the Camera's modelingMatrix() (inverse of the view matrix).
Matrix4 & setY(const Vector3< T_Scalar > &v)
static Matrix4 & getRotation(Matrix4 &out, float degrees, float x, float y, float z)
Vector3< T_Scalar > getT() const
fvec3 vec3
Defined as: 'typedef fvec3 vec3'. See also VL_PIPELINE_PRECISION.
fmat4 mat4
Defined as: 'typedef fmat4 mat4'. See also VL_PIPELINE_PRECISION.
static Matrix4 & getTranslation(Matrix4 &out, const Vector3< float > &v)
EBillboardType type() const
The type of the billboard.
Represents a virtual camera defining, among other things, the point of view from which scenes can be ...
const vec3 & axis() const
The rotation axis in world coordinates. Used only for axis aligned billboards.