Class CameraCalculator

java.lang.Object
org.collebol.math.CameraCalculator

public class CameraCalculator extends Object
You can calculate camera data in here.
  • Constructor Details

  • Method Details

    • getGameLocationFromVector2D

      public GameLocation getGameLocationFromVector2D(Vector2D position)
      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.