@EqualityReference public final class JCameraSphericalMouseRegion extends Object
| Modifier and Type | Method and Description |
|---|---|
float |
getCenterX() |
float |
getCenterY() |
float |
getHeight() |
JCameraScreenOrigin |
getOrigin() |
void |
getPosition(float x,
float y,
com.io7m.jtensors.VectorWritable2FType out)
Get the normalized coordinates for the given screen coordinates
(x,
y). |
float |
getWidth() |
static JCameraSphericalMouseRegion |
newRegion(JCameraScreenOrigin in_origin,
float in_width,
float in_height)
Construct a new mouse region.
|
public static JCameraSphericalMouseRegion 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 getPosition(float x,
float y,
com.io7m.jtensors.VectorWritable2FType 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