Package com.io7m.jcamera
Class JCameraSphericalSnapshots
java.lang.Object
com.io7m.jcamera.JCameraSphericalSnapshots
Functions to derive immutable snapshots of cameras.
-
Method Summary
Modifier and TypeMethodDescriptionstatic JCameraSphericalSnapshotinterpolate(JCameraSphericalSnapshot x, JCameraSphericalSnapshot y, double a) Linearly interpolate between two camera snapshots.static JCameraSphericalSnapshotof(JCameraSphericalReadableType camera)
-
Method Details
-
interpolate
public static JCameraSphericalSnapshot interpolate(JCameraSphericalSnapshot x, JCameraSphericalSnapshot y, double a) Linearly interpolate between two camera snapshots.- Parameters:
x- The first snapshoty- The second snapshota- The interpolation value- Returns:
- A value between
xandy
-
of
- Parameters:
camera- A camera- Returns:
- A snapshot of the given camera
-