@Override public VectorReadable3FType cameraGetUp() { this.deriveVectors(); return this.derived_up; }
@Override public Vector3D cameraGetUp() { this.deriveVectors(); return this.derived_up; }
@Override public VectorReadable3FType cameraGetRight() { this.deriveVectors(); return this.derived_right; }
@Override public Vector3D cameraGetForward() { this.deriveVectors(); return this.derived_forward; }
@Override public VectorReadable3FType cameraGetForwardProjectedOnXZ() { this.deriveVectors(); return this.derived_forward_on_xz; }
@Override public VectorReadable3FType cameraGetPosition() { this.deriveVectors(); return this.derived_position; }
@Override public Vector3D cameraGetPosition() { this.deriveVectors(); return this.derived_position; }
@Override public VectorReadable3FType cameraGetForward() { this.deriveVectors(); return this.derived_forward; }
@Override public Vector3D cameraGetForwardProjectedOnXZ() { this.deriveVectors(); return this.derived_forward_on_xz; }
@Override public Vector3D cameraGetRight() { this.deriveVectors(); return this.derived_right; }
@Override public void cameraMoveTargetRight( final double u) { this.deriveVectors(); this.input_target_position = Vectors3D.addScaled( this.input_target_position, this.derived_right, u); this.derived_current = false; }
@Override public void cameraMoveTargetRight( final float u) { this.deriveVectors(); VectorM3F.addScaledInPlace( this.input_target_position, this.derived_right, (double) u); this.derived_current = false; }
@Override public void cameraMoveTargetUp( final double u) { this.deriveVectors(); this.input_target_position = Vectors3D.addScaled( this.input_target_position, JCameraSpherical.AXIS_Y, u); this.derived_current = false; }
@Override public void cameraMoveTargetForwardOnXZ( final float u) { this.deriveVectors(); VectorM3F.addScaledInPlace( this.input_target_position, this.derived_forward_on_xz, (double) u); this.derived_current = false; }
@Override public void cameraMoveTargetForwardOnXZ( final double u) { this.deriveVectors(); this.input_target_position = Vectors3D.addScaled( this.input_target_position, this.derived_forward_on_xz, u); this.derived_current = false; }
@Override public Matrix4x4D cameraMakeViewMatrix() { this.deriveVectors(); return JCameraViewMatrix.makeViewMatrix( this.cameraGetPosition(), this.cameraGetRight(), this.cameraGetUp(), this.cameraGetForward()); }
@Override public <T0, T1> PMatrix4x4D<T0, T1> cameraMakeViewPMatrix() { this.deriveVectors(); return JCameraViewMatrix.makeViewPMatrix( this.cameraGetPosition(), this.cameraGetRight(), this.cameraGetUp(), this.cameraGetForward()); }
@Override public void cameraMakeViewMatrix( final JCameraContext ctx, final Matrix4x4FType m) { this.deriveVectors(); JCameraViewMatrix.makeViewMatrix( ctx, m, this.cameraGetPosition(), this.cameraGetRight(), this.cameraGetUp(), this.cameraGetForward()); }
@Override public <T0, T1> void cameraMakeViewPMatrix( final JCameraContext ctx, final PMatrix4x4FType<T0, T1> m) { this.deriveVectors(); JCameraViewMatrix.makeViewPMatrix( ctx, m, this.cameraGetPosition(), this.cameraGetRight(), this.cameraGetUp(), this.cameraGetForward()); }
@Override public JCameraSphericalSnapshot cameraMakeSnapshot() { this.deriveVectors(); return new JCameraSphericalSnapshot( new VectorI3F(this.derived_forward), new VectorI3F(this.derived_right), new VectorI3F(this.derived_up), this.input_incline, this.input_heading, new VectorI3F(this.derived_position), this.input_radius, new VectorI3F(this.input_target_position), new VectorI3F(this.derived_forward_on_xz)); }