JNISpice
version 2.0.0

spice.basic
Class AxisAndAngle

java.lang.Object
  extended by spice.basic.AxisAndAngle

public class AxisAndAngle
extends java.lang.Object

Class AxisAndAngle provides containers for rotation axis and angle combinations.

Version 1.0.0 08-DEC-2009 (NJB)


Constructor Summary
AxisAndAngle(AxisAndAngle a)
          Copy constructor.
AxisAndAngle(Matrix33 r)
          Create a rotation axis and angle from a rotation matrix.
AxisAndAngle(Vector3 v, double angle)
          Create a rotation axis and angle from a vector and scalar.
 
Method Summary
 double getAngle()
          Get the rotation angle from this instance.
 Vector3 getAxis()
          Get the rotation axis from this instance.
 Matrix33 toMatrix()
          Create a rotation matrix from this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AxisAndAngle

public AxisAndAngle(AxisAndAngle a)
Copy constructor. This constructor creates a deep copy.


AxisAndAngle

public AxisAndAngle(Vector3 v,
                    double angle)
             throws SpiceException
Create a rotation axis and angle from a vector and scalar.

The axis must be non-zero.

Throws:
SpiceException

AxisAndAngle

public AxisAndAngle(Matrix33 r)
             throws SpiceException
Create a rotation axis and angle from a rotation matrix.

Throws:
SpiceException
Method Detail

getAxis

public Vector3 getAxis()
Get the rotation axis from this instance.


getAngle

public double getAngle()
Get the rotation angle from this instance.


toMatrix

public Matrix33 toMatrix()
                  throws SpiceException
Create a rotation matrix from this instance.

Throws:
SpiceException

JNISpice
version 2.0.0

JNISpice Alpha Test Version 2.0.0 28-JAN-2017 (NJB)