Package com.io7m.jcamera
Class JCameraFPSStyleAngularIntegrator
java.lang.Object
com.io7m.jcamera.JCameraFPSStyleAngularIntegrator
- All Implemented Interfaces:
JCameraFPSStyleAngularIntegratorType,JCameraIntegratorType
@EqualityReference
public final class JCameraFPSStyleAngularIntegrator
extends Object
implements JCameraFPSStyleAngularIntegratorType
The default implementation of
JCameraFPSStyleAngularIntegratorType.-
Method Summary
Modifier and TypeMethodDescriptionvoidintegrate(double time) Integrate the positions/velocities of the current camera overd.voidSet the acceleration around the horizontal axis toa.voidintegratorAngularSetAccelerationVertical(double a) Set the acceleration around the vertical axis toa.voidintegratorAngularSetDragHorizontal(double d) Set the drag around the horizontal axis toa.voidintegratorAngularSetDragVertical(double d) Set the drag around the vertical axis toa.voidSet the maximum rotation speed around the horizontal axis tos.voidintegratorAngularSetMaximumSpeedVertical(double s) Set the maximum rotation speed around the vertical axis tos.newIntegrator(JCameraFPSStyleType in_camera, JCameraFPSStyleInputType in_input) Construct a new integrator.
-
Method Details
-
newIntegrator
public static JCameraFPSStyleAngularIntegratorType 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 time) Description copied from interface:JCameraIntegratorTypeIntegrate the positions/velocities of the current camera overd.- Specified by:
integratein interfaceJCameraIntegratorType- Parameters:
time- The delta time
-
integratorAngularSetAccelerationHorizontal
public void integratorAngularSetAccelerationHorizontal(double a) Description copied from interface:JCameraFPSStyleAngularIntegratorTypeSet the acceleration around the horizontal axis toa.- Specified by:
integratorAngularSetAccelerationHorizontalin interfaceJCameraFPSStyleAngularIntegratorType- Parameters:
a- The acceleration value.
-
integratorAngularSetAccelerationVertical
public void integratorAngularSetAccelerationVertical(double a) Description copied from interface:JCameraFPSStyleAngularIntegratorTypeSet the acceleration around the vertical axis toa.- Specified by:
integratorAngularSetAccelerationVerticalin interfaceJCameraFPSStyleAngularIntegratorType- Parameters:
a- The acceleration value.
-
integratorAngularSetDragHorizontal
public void integratorAngularSetDragHorizontal(double d) Description copied from interface:JCameraFPSStyleAngularIntegratorTypeSet the drag around the horizontal axis toa.- Specified by:
integratorAngularSetDragHorizontalin interfaceJCameraFPSStyleAngularIntegratorType- Parameters:
d- The drag value.
-
integratorAngularSetDragVertical
public void integratorAngularSetDragVertical(double d) Description copied from interface:JCameraFPSStyleAngularIntegratorTypeSet the drag around the vertical axis toa.- Specified by:
integratorAngularSetDragVerticalin interfaceJCameraFPSStyleAngularIntegratorType- Parameters:
d- The drag value.
-
integratorAngularSetMaximumSpeedHorizontal
public void integratorAngularSetMaximumSpeedHorizontal(double s) Description copied from interface:JCameraFPSStyleAngularIntegratorTypeSet the maximum rotation speed around the horizontal axis tos.- Specified by:
integratorAngularSetMaximumSpeedHorizontalin interfaceJCameraFPSStyleAngularIntegratorType- Parameters:
s- The maximum rotation speed.
-
integratorAngularSetMaximumSpeedVertical
public void integratorAngularSetMaximumSpeedVertical(double s) Description copied from interface:JCameraFPSStyleAngularIntegratorTypeSet the maximum rotation speed around the vertical axis tos.- Specified by:
integratorAngularSetMaximumSpeedVerticalin interfaceJCameraFPSStyleAngularIntegratorType- Parameters:
s- The maximum rotation speed.
-
integratorGetCamera
- Specified by:
integratorGetCamerain interfaceJCameraFPSStyleAngularIntegratorType- Returns:
- The camera that will be affected by the integrator
-
integratorGetInput
- Specified by:
integratorGetInputin interfaceJCameraFPSStyleAngularIntegratorType- Returns:
- The input used to drive the integrator.
-