opengl package
This commit is contained in:
@@ -6,7 +6,11 @@ import chess.model.Coordinate;
|
||||
|
||||
class DDDPlacement {
|
||||
static public Vector2f coordinates_to_vector(Coordinate coo) {
|
||||
return new Vector2f(1.0f - 0.125f - coo.getX() * 0.250f, 1.0f - 0.125f - coo.getY() * 0.250f);
|
||||
return coordinates_to_vector(coo.getX(), coo.getY());
|
||||
}
|
||||
|
||||
static public Vector2f coordinates_to_vector(float x, float y) {
|
||||
return new Vector2f(1.0f - 0.125f - x * 0.250f, 1.0f - 0.125f - y * 0.250f);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user