Package org.collebol.math
Class CameraCalculator
java.lang.Object
org.collebol.math.CameraCalculator
You can calculate camera data in here.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGameLocationFromVector2D(Vector2D position) This calculates method will calculate the current GameLocation on the given Vector2D cords.
-
Constructor Details
-
CameraCalculator
-
-
Method Details
-
getGameLocationFromVector2D
This calculates method will calculate the current GameLocation on the given Vector2D cords. If the camera moves or zooms in or rotates, the GameLocation will change.- Parameters:
position- Panel position to calculate the current GameLocation on that Panel position.- Returns:
- The GameLocation on the given Panel position.
-