19 #include "Geometry/mathlib.h"
32 name =
"unknown repere";
Base class of Event, Material, PostFilter, Ray, Repere, Scene, Shape, Simulation, Source.
std::string name
Each instantiated object may be named.
vec3 getU() const
Get global coordinates of local axis U,V,W and origin O.
vec3 U
Coordinates of local axis U in global frame.
decimal LtoG[4][4]
Local to global frame matrix.
vec3 vectorFromGlobalToLocal(const vec3 &global)
Get local coordinates of vector expressed in global coordinates.
vec3 positionFromLocalToGlobal(const vec3 &local)
Get global coordinates of a point expressed in local coordinates.
virtual ~Repere()
Destructor.
vec3 V
Coordinates of local axis V in global frame.
void updateMatrices()
Update the global and local frame matrices.
vec3 W
Coordinates of local axis W in global frame.
decimal GtoL[4][4]
Global to local frame matrix.
void set(vec3 _U, vec3 _V, vec3 _W, vec3 _O)
Set global coordinates of local axis U,V,W and origin O.
vec3 vectorFromLocalToGlobal(const vec3 &local)
Get global coordinates of vector expressed in local coordinates.
vec3 positionFromGlobalToLocal(const vec3 &global)
Get local coordinates of a point expressed in global coordinates.
vec3 O
Origin of the local frame in the global frame.
base_vec3< decimal > vec3