com.threerings.probs
Class QuaternionVariable.Identity

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.probs.QuaternionVariable
          extended by com.threerings.probs.QuaternionVariable.Identity
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
QuaternionVariable

public static class QuaternionVariable.Identity
extends QuaternionVariable

Always return the identity value.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.probs.QuaternionVariable
QuaternionVariable.Constant, QuaternionVariable.Identity, QuaternionVariable.Random, QuaternionVariable.Uniform
 
Constructor Summary
QuaternionVariable.Identity()
           
 
Method Summary
 Quaternion getMean(Quaternion result)
          Computes the mean value.
 Quaternion getValue(Quaternion result)
          Computes a sample value according to the variable's distribution.
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QuaternionVariable.Identity

public QuaternionVariable.Identity()
Method Detail

getValue

public Quaternion getValue(Quaternion result)
Description copied from class: QuaternionVariable
Computes a sample value according to the variable's distribution.

Specified by:
getValue in class QuaternionVariable
Returns:
a reference to the result value, for chaining.

getMean

public Quaternion getMean(Quaternion result)
Description copied from class: QuaternionVariable
Computes the mean value.

Specified by:
getMean in class QuaternionVariable
Returns:
a reference to the result value, for chaining.


Copyright © 2011. All Rights Reserved.