local_to_world_coordinates

compas.geometry.local_to_world_coordinates(frame, xyz)[source]

Convert local coordinates to global coordinates.

Parameters:
frame[point, vector, vector] | compas.geometry.Frame

The local coordinate system.

xyzarray-like[[float, float, float] | compas.geometry.Point]

The global coordinates of the points to convert.

Returns:
list[[float, float, float]]

The coordinates of the given points in the local coordinate system.

Examples

>>> from compas.geometry import Point, Frame
>>> f = Frame([0, 1, 0], [3, 4, 1], [1, 5, 9])
>>> xyz = [Point(3.726, 4.088, 1.550)]
>>> Point(*local_to_world_coordinates(f, xyz)[0])
Point(2.000, 3.000, 5.000)