cls_OrientationForWobjects_mixClass - almarklein/visvis GitHub Wiki
Inherits from object.
This class can be mixed with a wobject class to enable easy orientation of the objects in space. It makes use of the tranformation list that each wobject has.
The functionality provided by this class is not made part of the Wobject class because it does not make sense for all kind of wobjects (for example lines and images). The OrientableMesh is a class that inherits from this class.
The OrientationForWobjects_mixClass class implements the following properties:
direction, rotation, scaling, translation
Get/Set the direction (i.e. orientation) of the object. Can be set using a 3-element tuple or a 3D point. The getter always returns a Point.
Get/Set the rotation of the object (in degrees, around its direction vector).
Get/Set the scaling of the object. Can be set using a 3-element tuple, a 3D point, or a scalar. The getter always returns a Point.
Get/Set the transaltion of the object. Can be set using a 3-element tuple or a 3D point. The getter always returns a Point.