translateFrame()

Synopsis

Returns a frame that results by translating frame f by vector dir.

Frames define coordinate systems. There is a transformation matrix associated with a frame , which transforms geometry defined in the "world" coordinate system to the local coordinate system.

Syntax

translateFrame ( f As Frame, _
                 dir As Vector ) As Frame 
Argument Type Description
f Frame Frame to be translated
dir Vector translation vector

Example 1

Intent >translateFrame(worldFrame(), vector(1,1,0))
--> Frame<Vector_(1.0, 0.0, 0.0, WorldFrame()), Vector_(0.0, 1.0, 0.0, WorldFrame()), Vector_(0.0, 0.0, 1.0, WorldFrame()), Point_(1.0, 1.0, 0.0, WorldFrame())>

Example 2

Intent >translateFrame(worldFrame(), vector(2,3,4))
--> Frame<Vector_(1.0, 0.0, 0.0, WorldFrame()), Vector_(0.0, 1.0, 0.0, WorldFrame()), Vector_(0.0, 0.0, 1.0, WorldFrame()), Point_(2.0, 3.0, 4.0, WorldFrame())>