-
- All Implemented Interfaces:
public final class Vector2D
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
Vector2D.Companion
-
Method Summary
Modifier and Type Method Description final Double
getX()
final Double
getY()
final Vector2D
add(Vector2D other)
final Vector2D
normalize()
final Vector2D
rotate(Integer fromDirection, Integer toDirection)
final Vector2D
scale(Double amountX, Double amountY)
final Vector2D
scale(Vector2D vector)
final Vector2D
trimMax(Double xMax, Double yMax)
final Vector2D
trimMin(Double xMin, Double yMin)
final Vector2D
withX(Double value)
final Vector2D
withY(Double value)
-