I'm using a Vector2f from LWJGL for a Vector2, but what are the equivalents of a Vector2 and the get/set accessors and the keyword value in Java with LWJGL?
#region Declarations
private static Vector2 position = Vector2.Zero;
private static Vector2 viewPortSize = Vector2.Zero;
private static Rectangle worldBoundary = new Rectangle(0, 0, 0, 0);
#endregion
#region Properties
public static Vector2 Position
{
get { return position; }
set
{
position = new Vector2(
MathHelper.Clamp(value.X, worldBoundary.X, worldBoundary.Width - ViewPortWidth),
MathHelper.Clamp(value.Y, worldBoundary.Y, worldBoundary.Height - ViewPortHeight));
}
}