Package com.io7m.jcamera
Class JCameraFPSStyleLinearIntegrator
java.lang.Object
com.io7m.jcamera.JCameraFPSStyleLinearIntegrator
- All Implemented Interfaces:
JCameraFPSStyleLinearIntegratorType,JCameraIntegratorType
@EqualityReference
public final class JCameraFPSStyleLinearIntegrator
extends Object
implements JCameraFPSStyleLinearIntegratorType
The default implementation of
JCameraFPSStyleLinearIntegratorType.-
Method Summary
Modifier and TypeMethodDescriptionvoidintegrate(double t) Integrate the positions/velocities of the current camera overd.voidintegratorLinearSetAcceleration(double a) Set the linear acceleration toa.voidintegratorLinearSetDrag(double f) Set the linear drag factor tof.voidintegratorLinearSetMaximumSpeed(double s) Set the maximum linear movement speed tos.newIntegrator(JCameraFPSStyleType in_camera, JCameraFPSStyleInputType in_input) Construct a new integrator.
-
Method Details
-
newIntegrator
public static JCameraFPSStyleLinearIntegratorType newIntegrator(JCameraFPSStyleType in_camera, JCameraFPSStyleInputType in_input) Construct a new integrator.- Parameters:
in_camera- The camera to be integrated.in_input- The input to be sampled.- Returns:
- A new integrator
-
integrate
public void integrate(double t) Description copied from interface:JCameraIntegratorTypeIntegrate the positions/velocities of the current camera overd.- Specified by:
integratein interfaceJCameraIntegratorType- Parameters:
t- The delta time
-
integratorGetCamera
- Specified by:
integratorGetCamerain interfaceJCameraFPSStyleLinearIntegratorType- Returns:
- The camera that will be affected by the integrator
-
integratorGetInput
- Specified by:
integratorGetInputin interfaceJCameraFPSStyleLinearIntegratorType- Returns:
- The input used to drive the integrator.
-
integratorLinearSetAcceleration
public void integratorLinearSetAcceleration(double a) Description copied from interface:JCameraFPSStyleLinearIntegratorTypeSet the linear acceleration toa.- Specified by:
integratorLinearSetAccelerationin interfaceJCameraFPSStyleLinearIntegratorType- Parameters:
a- The linear acceleration.
-
integratorLinearSetDrag
public void integratorLinearSetDrag(double f) Description copied from interface:JCameraFPSStyleLinearIntegratorTypeSet the linear drag factor tof.- Specified by:
integratorLinearSetDragin interfaceJCameraFPSStyleLinearIntegratorType- Parameters:
f- The linear drag factor.
-
integratorLinearSetMaximumSpeed
public void integratorLinearSetMaximumSpeed(double s) Description copied from interface:JCameraFPSStyleLinearIntegratorTypeSet the maximum linear movement speed tos.- Specified by:
integratorLinearSetMaximumSpeedin interfaceJCameraFPSStyleLinearIntegratorType- Parameters:
s- The maximum linear speed.
-