public class RotatingCameraProvider extends Object implements CameraPositionProvider
Constructor and Description |
---|
RotatingCameraProvider(float xPos,
float yPos,
float zPos,
float x,
float y,
float z,
float xS,
float yS,
float zS,
float radius)
Rotating camera provider looking at x, y, z with the given radius.
|
RotatingCameraProvider(float xPos,
float yPos,
float zPos,
float x,
float y,
float z,
float xS,
float yS,
float zS,
float radiusX,
float radiusY,
float radiusZ)
Rotating camera provider looking at x, y, z with the given radius.
|
Modifier and Type | Method and Description |
---|---|
float[] |
getCameraPosition()
Returns the camera position (x, y, z) position,
(x, y, z) look at position, (x, y, z) camera normal (up).
|
public RotatingCameraProvider(float xPos, float yPos, float zPos, float x, float y, float z, float xS, float yS, float zS, float radius)
xPos
- The initial position of the camera x coordinateyPos
- The initial position of the camera y coordinatezPos
- The initial position of the camera z coordinatex
- The x The look-at point of the camera x coordinatey
- The y The look-at point of the camera y coordinatez
- The z The look-at point of the camera z coordinatexS
- The x speed The x oscillation speedyS
- The y speed The y oscillation speedzS
- The z speed The z oscillation speedradius
- The amplitude of all the osciallitionspublic RotatingCameraProvider(float xPos, float yPos, float zPos, float x, float y, float z, float xS, float yS, float zS, float radiusX, float radiusY, float radiusZ)
xPos
- The initial position of the camera x coordinateyPos
- The initial position of the camera y coordinatezPos
- The initial position of the camera z coordinatex
- The x The look-at point of the camera x coordinatey
- The y The look-at point of the camera y coordinatez
- The z The look-at point of the camera z coordinatexS
- The x speed The x oscillation speedyS
- The y speed The y oscillation speedzS
- The z speed The z oscillation speedradiusX
- The amplitude of the X osciallitionsradiusY
- The amplitude of the Y osciallitionsradiusZ
- The amplitude of the Z osciallitionspublic float[] getCameraPosition()
getCameraPosition
in interface CameraPositionProvider
CameraPositionProvider.getCameraPosition()