Various and sundry modifications to clean up orientation handling and add
support for 16 orientations in situations where it is merited. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1548 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: DirectionTest.java,v 1.1 2002/06/26 02:54:56 mdb Exp $
|
||||
// $Id: DirectionTest.java,v 1.2 2002/06/26 23:53:07 mdb Exp $
|
||||
|
||||
package com.threerings.util;
|
||||
|
||||
@@ -34,6 +34,12 @@ public class DirectionTest extends TestCase
|
||||
}
|
||||
// System.out.println(DirectionUtil.toShortString(orient));
|
||||
assertTrue("CCW rotate", orient == NORTH);
|
||||
|
||||
// for (double theta = -Math.PI; theta <= Math.PI; theta += Math.PI/1000) {
|
||||
// orient = DirectionUtil.getFineDirection(theta);
|
||||
// System.out.println(Math.toDegrees(theta) + " => " +
|
||||
// DirectionUtil.toShortString(orient));
|
||||
// }
|
||||
}
|
||||
|
||||
public static Test suite ()
|
||||
|
||||
Reference in New Issue
Block a user