uwcse.location.core
Class StateTransform

java.lang.Object
  |
  +--javax.media.j3d.Transform3D
        |
        +--uwcse.location.core.StateTransform

public class StateTransform
extends Transform3D

This class represents a matrix transformation of the estimated or actual location (translation and rotation) an object. A right-handed coordinate frame is assumed.

Version:
$Revision: 1.3 $
Author:
Jeffrey Hightower

Field Summary
 
Fields inherited from class javax.media.j3d.Transform3D
AFFINE, CONGRUENT, IDENTITY, NEGATIVE_DETERMINANT, ORTHOGONAL, RIGID, SCALE, TRANSLATION, ZERO
 
Constructor Summary
StateTransform()
          Constructs and initializes a transform to the identity matrix.
StateTransform(double[] matrix)
          Constructs and initializes a transform from the double precision array of length 16; the top row of the matrix is initialized to the first four elements of the array, and so on.
StateTransform(Transform3D t1)
          Constructs and initializes a transform from the Transform3D object.
StateTransform(Matrix3d m1, Vector3d t1, double s)
          Constructs and initializes a transform from the rotation matrix, translation, and scale values.
StateTransform(Matrix4d m1)
          Constructs and initializes a transform from the 4 x 4 matrix.
StateTransform(Quat4d q1, Vector3d t1, double s)
          Constructs and initializes a transform from the quaternion, translation, and scale values.
StateTransform(State state)
          Constructs and initializes a transform from the position and quaternion rotation in the given State.
StateTransform(StateTransform t1)
          Constructs and initializes a transform from the StateTransform object.
 
Method Summary
 void transform(State state)
          Transforms the State parameter with this transformation and place the result back into the State.
 
Methods inherited from class javax.media.j3d.Transform3D
add, add, determinant, epsilonEquals, equals, equals, frustum, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, getAutoNormalize, getBestType, getDeterminantSign, getRotationScale, getRotationScale, getScale, getScale, getType, hashCode, invert, invert, lookAt, mul, mul, mul, mul, mulInverse, mulInverse, mulTransposeBoth, mulTransposeLeft, mulTransposeRight, normalize, normalize, normalizeCP, normalizeCP, ortho, perspective, rotX, rotY, rotZ, scaleAdd, scaleAdd, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setAutoNormalize, setEuler, setIdentity, setNonUniformScale, setRotation, setRotation, setRotation, setRotation, setRotation, setRotation, setRotationScale, setRotationScale, setScale, setScale, setTranslation, setTranslation, setZero, sub, sub, toString, transform, transform, transform, transform, transform, transform, transform, transform, transform, transform, transform, transform, transpose, transpose
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StateTransform

public StateTransform()
Constructs and initializes a transform to the identity matrix.


StateTransform

public StateTransform(double[] matrix)
Constructs and initializes a transform from the double precision array of length 16; the top row of the matrix is initialized to the first four elements of the array, and so on.


StateTransform

public StateTransform(Matrix3d m1,
                      Vector3d t1,
                      double s)
Constructs and initializes a transform from the rotation matrix, translation, and scale values.


StateTransform

public StateTransform(Matrix4d m1)
Constructs and initializes a transform from the 4 x 4 matrix.


StateTransform

public StateTransform(Quat4d q1,
                      Vector3d t1,
                      double s)
Constructs and initializes a transform from the quaternion, translation, and scale values.


StateTransform

public StateTransform(Transform3D t1)
Constructs and initializes a transform from the Transform3D object.


StateTransform

public StateTransform(StateTransform t1)
Constructs and initializes a transform from the StateTransform object.


StateTransform

public StateTransform(State state)
Constructs and initializes a transform from the position and quaternion rotation in the given State.

Method Detail

transform

public void transform(State state)
Transforms the State parameter with this transformation and place the result back into the State.



This documentation is for the Location Stack v0.8. The latest distribution, the documentation, and the list of contributors to the Location Stack can always be found at http://portolano.cs.washington.edu/projects/location/

© Copyright 2004 University of Washington CSE