@EqualityReference public final class JCameraSphericalLinearIntegratorZoomScaled extends Object implements JCameraSphericalLinearIntegratorType
JCameraSphericalLinearIntegratorType that scales
movement on the horizontal plane by the current zoom.| Modifier and Type | Method and Description |
|---|---|
void |
integrate(float t)
Integrate the positions/velocities of the current camera over
d. |
JCameraSphericalType |
integratorGetCamera() |
JCameraSphericalInputType |
integratorGetInput() |
void |
integratorLinearTargetSetAcceleration(float a)
Set the linear acceleration (of the camera target) to
a. |
void |
integratorLinearTargetSetDrag(float f)
Set the linear drag factor (of the camera target) to
f. |
void |
integratorLinearTargetSetMaximumSpeed(float s)
Set the maximum linear movement speed (of the camera target) to
s. |
void |
integratorLinearZoomSetAcceleration(float a)
Set the linear acceleration (of the camera zoom) to
a. |
void |
integratorLinearZoomSetDrag(float f)
Set the linear drag factor (of the camera zoom) to
f. |
void |
integratorLinearZoomSetMaximumSpeed(float s)
Set the maximum linear movement speed (of the camera zoom) to
s. |
static JCameraSphericalLinearIntegratorType |
newIntegrator(JCameraSphericalType in_camera,
JCameraSphericalInputType in_input)
Construct a new integrator.
|
static JCameraSphericalLinearIntegratorType |
newIntegratorWithFunctions(JCameraSphericalType in_camera,
JCameraSphericalInput in_input,
JCameraScalingFunctionType in_drag_scale,
JCameraScalingFunctionType in_linear_scale)
Construct a new integrator.
|
public static JCameraSphericalLinearIntegratorType newIntegrator(JCameraSphericalType in_camera, JCameraSphericalInputType in_input)
in_camera - The camera to be integrated.in_input - The input to be sampled.public static JCameraSphericalLinearIntegratorType newIntegratorWithFunctions(JCameraSphericalType in_camera, JCameraSphericalInput in_input, JCameraScalingFunctionType in_drag_scale, JCameraScalingFunctionType in_linear_scale)
in_camera - The camera to be integrated.in_input - The input to be sampled.in_drag_scale - The function used to produce a scaling factor for
mouse dragging.in_linear_scale - The function used to produce a scaling factor for
linear movement.public void integrate(float t)
JCameraIntegratorTyped.integrate in interface JCameraIntegratorTypet - The delta timepublic JCameraSphericalType integratorGetCamera()
integratorGetCamera in interface JCameraSphericalLinearIntegratorTypepublic JCameraSphericalInputType integratorGetInput()
integratorGetInput in interface JCameraSphericalLinearIntegratorTypepublic void integratorLinearTargetSetAcceleration(float a)
JCameraSphericalLinearIntegratorTypea.integratorLinearTargetSetAcceleration in interface JCameraSphericalLinearIntegratorTypea - The linear acceleration.public void integratorLinearTargetSetDrag(float f)
JCameraSphericalLinearIntegratorTypef.integratorLinearTargetSetDrag in interface JCameraSphericalLinearIntegratorTypef - The linear drag factor.public void integratorLinearTargetSetMaximumSpeed(float s)
JCameraSphericalLinearIntegratorTypes.integratorLinearTargetSetMaximumSpeed in interface JCameraSphericalLinearIntegratorTypes - The maximum linear speed.public void integratorLinearZoomSetAcceleration(float a)
JCameraSphericalLinearIntegratorTypea.integratorLinearZoomSetAcceleration in interface JCameraSphericalLinearIntegratorTypea - The linear acceleration.public void integratorLinearZoomSetDrag(float f)
JCameraSphericalLinearIntegratorTypef.integratorLinearZoomSetDrag in interface JCameraSphericalLinearIntegratorTypef - The linear drag factor.public void integratorLinearZoomSetMaximumSpeed(float s)
JCameraSphericalLinearIntegratorTypes.integratorLinearZoomSetMaximumSpeed in interface JCameraSphericalLinearIntegratorTypes - The maximum linear speed.Copyright © 2016 <code@io7m.com> http://io7m.com