fileconvert
Class Transform

java.lang.Object
  |
  +--fileconvert.Transform

public class Transform
extends java.lang.Object

This class acts as a helper and performs translation, rotation and scaling functions on Info3d


Constructor Summary
Transform()
          Creates new Transform
Transform(Info3d info, coord r, coord t, coord s)
          Creates new Transform and performs all the transformations
 
Method Summary
 Info3d gettransformed()
          Returns the transformed 3d info
 Info3d transform(Info3d info, coord r, coord t, coord s)
          Performs all the transformations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Transform

public Transform()
Creates new Transform

Transform

public Transform(Info3d info,
                 coord r,
                 coord t,
                 coord s)
Creates new Transform and performs all the transformations
Parameters:
info - The 3d info to be transformed
r - 3 float value of rotation(H, P, B)
t - 3 float value of translation(x, y, z)
s - 3 float value of scaling(x, y, z)
Method Detail

transform

public Info3d transform(Info3d info,
                        coord r,
                        coord t,
                        coord s)
Performs all the transformations
Parameters:
info - The 3d info to be transformed
r - 3 float value of rotation(H, P, B)
t - 3 float value of translation(x, y, z)
s - 3 float value of scaling(x, y, z)
Returns:
Returns the transformed 3d info

gettransformed

public Info3d gettransformed()
Returns the transformed 3d info
Returns:
Returns the transformed 3d info