Frame.to_world_coordinates
- Frame.to_world_coordinates(object_in_lcf)[source]
Returns the object’s coordinates in the global coordinate frame.
- Parameters
object_in_lcf (
compas.geometry.Point
orcompas.geometry.Vector
orcompas.geometry.Frame
or list of float) – An object in local coordinate system of the frame.- Returns
compas.geometry.Point
orcompas.geometry.Vector
orcompas.geometry.Frame
– The object in the world coordinate frame.
Notes
If you pass a list of float, it is assumed to represent a point.
Examples
>>> from compas.geometry import Point >>> frame = Frame([1, 1, 1], [0.68, 0.68, 0.27], [-0.67, 0.73, -0.15]) >>> pl = Point(1.632, -0.090, 0.573) # point in frame >>> pw = frame.to_world_coordinates(pl) # point in wcf >>> frame.to_local_coordinates(pw) Point(1.632, -0.090, 0.573)