map_model_to_world#

Graphic.map_model_to_world(position)[source]#

map position from model (data) space to world space, basically applies the world affine transform

Parameters:

position ((float, float, float) or (float, float)) – (x, y, z) or (x, y) position. If z is not provided then the graphic’s offset z is used.

Returns:

(x, y, z) position in world space

Return type:

np.ndarray

Examples#

Rotate image

Rotate image

Rotate line

Rotate line

Scale image

Scale image

Scale line

Scale line

Translate image

Translate image

Translate line

Translate line

Translate and scale image

Translate and scale image

Translate and scale line

Translate and scale line

Translate scale and rotate image

Translate scale and rotate image

Translate scale and rotate line

Translate scale and rotate line