org.opensourcephysics.sip.ch17
Class Rotation3D

java.lang.Object
  extended by org.opensourcephysics.sip.ch17.Rotation3D

public class Rotation3D
extends java.lang.Object

Rotation3D implements 3D rotations using a matrix representation.


Constructor Summary
Rotation3D(double theta, double[] axis)
          Creates a representation of a rotation about the origin by some angle around the given axis.
 
Method Summary
 void direct(double[] point)
          Transforms the given point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rotation3D

public Rotation3D(double theta,
                  double[] axis)
Creates a representation of a rotation about the origin by some angle around the given axis.

Parameters:
theta - double
axis - double[]
Method Detail

direct

public void direct(double[] point)
Transforms the given point.

Parameters:
point - the coordinates to be transformed