Project

General

Profile

« Previous | Next » 

Revision 47bf4654

Added by Leszek Koltunski about 5 years ago

RubikCube: make finishingRotation more flexible (can now finish any rotation which did finish interpolating (nearly) to the end - and not only the single-static 'manual' rotation)

View differences:

src/main/java/org/distorted/library/type/DynamicQuat.java
30 30
*
31 31
* Only unit quaternions represent valid rotations in 3D - and interpolating through rotations is the
32 32
* most common use case for this class. No effort is done to normalize the Points though.
33
*
34
* Rotation Quaternion is assumed to be in the form ( axisX*sinT, axisY*sinT, axisZ*sinT, cosT ).
33 35
*/
34 36

  
35 37
public class DynamicQuat extends Dynamic implements Data4D
......
147 149
///////////////////////////////////////////////////////////////////////////////////////////////////
148 150
/**
149 151
 * Resets the location'th Point.
152
 * <p>
153
 * Rotation Quaternion is assumed to be in the form ( axisX*sinT, axisY*sinT, axisZ*sinT, cosT ).
150 154
 *
151 155
 * @param location the index of the Point we are setting.
152 156
 * @param x New value of its first float.

Also available in: Unified diff