Group.TransformPointToGroup

This page contains reference documentation for the TransformPointToGroup function. This function will transform a coordinate from one group to another.

Prototype

Matrix TransformPointToGroup( Group DestinationGroup, Vec Point )

Parameters

Function parameters are as follows:

  • DestinationGroup: The group to transform to.
  • Point: A Vec object to contain the transformed coordinate.

Examples

Examples are as follows:

Vec aVec1 = new Vec;
Vec aVec2 = new Vec;
Matrix RootTransform = new Matrix;

node.Parent().GetTransformToGroup( Model, RootTransform );
Model.GetSelectedNode( 0 ).GetSelectBounds( aVec1, aVec2 );
node.Parent().TransformPointToGroup( Model, aVec1);

Working Sample Code

For sample code: