Returns a frame that results by rotating frame f by ang degrees about the axis defined by point p and 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.
rotateFrame ( f As Frame, _ ang As Number, _ p As Point, _ dir As Vector ) As Frame
Argument | Type | Description |
---|---|---|
f | Frame | Frame to be rotated |
ang | Number | Angle, in degrees, by which the frame rotates |
p | Point | A point that lies on the axis of rotation |
dir | Vector | Direction of the axis of rotation |
Intent >rotateFrame(worldFrame(), 22.5,point(1,1,0),vector(1,1,0)) --> Frame<Vector_(0.96193976625564, 0.03806023374436, -0.2705980500731, WorldFrame()), Vector_(0.03806023374436, 0.96193976625564, 0.2705980500731, WorldFrame()), Vector_(0.2705980500731, -0.2705980500731, 0.92387953251129, WorldFrame()), Point_(1.0, 1.0, 0.0, WorldFrame())>