public class CamUtil
extends java.lang.Object
Utility for working with Cameras in the FXGeometryViewer.
Constructor and Description |
---|
CamUtil() |
Modifier and Type | Method and Description |
---|---|
static javafx.scene.transform.Affine |
lookAt(javafx.geometry.Point3D target,
javafx.geometry.Point3D pos,
javafx.geometry.Point3D yUp)
Computes a matrix to orient a node towards a given point, defined by
target.
|
static javafx.geometry.Point3D |
pointToSphere(double x,
double y,
double sphereRadius)
Maps canvas coordinate to a spherical location.
|
public static javafx.geometry.Point3D pointToSphere(double x, double y, double sphereRadius)
Maps canvas coordinate to a spherical location.
x
- canvas x coordinatey
- canvas y coordinatepublic static javafx.scene.transform.Affine lookAt(javafx.geometry.Point3D target, javafx.geometry.Point3D pos, javafx.geometry.Point3D yUp)
Computes a matrix to orient a node towards a given point, defined by target.
target
- the target to look atpos
- the viewer's current locationyUp
- the direction of "up"