@EqualityReference public final class JCameraFPSStyleMouseRegion extends Object
| Modifier and Type | Method and Description |
|---|---|
float |
getCenterX() |
float |
getCenterY() |
void |
getCoefficients(float x,
float y,
JCameraRotationCoefficients out)
Return the region-space coefficients for the screen-space position
(x, y). |
float |
getHeight() |
JCameraScreenOrigin |
getOrigin() |
float |
getWidth() |
static JCameraFPSStyleMouseRegion |
newRegion(JCameraScreenOrigin in_origin,
float in_width,
float in_height)
Construct a new mouse region.
|
public static JCameraFPSStyleMouseRegion newRegion(JCameraScreenOrigin in_origin, float in_width, float in_height)
in_origin - The screen origin.in_width - The region width.in_height - The region height.public float getCenterX()
public float getCenterY()
public void getCoefficients(float x,
float y,
JCameraRotationCoefficients out)
(x, y).x - The x coordinatey - The y coordinateout - The output vectorpublic float getHeight()
public JCameraScreenOrigin getOrigin()
public float getWidth()
Copyright © 2016 <code@io7m.com> http://io7m.com