blob: 9e9244de1700c197aecab13413f29ee9c6e6cb8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package kr.syeyoung.dungeonsguide.utils;
import javax.vecmath.Vector2d;
public class VectorUtils {
// Ior rooms, different coordinate system is used. Y Increses as marker goes down. X is same.
public static Vector2d rotateCounterClockwise(Vector2d vector2d) {
return new Vector2d(vector2d.y, -vector2d.x);
}
public static Vector2d rotateClockwise(Vector2d vector2d) {
return new Vector2d(-vector2d.y, vector2d.x);
}
}
|