public interface Camera
Modifier and Type | Method and Description |
---|---|
Vector3d |
getDirection()
Returns the direction the camera is targeting.
|
Vector3d |
getLocation()
Returns the global location of the 3D camera.
|
Vector3d |
getUpVector()
Returns the upwards direction of the camera.
|
void |
lookAt(Collection<Component> components)
Sets the camera to look at the given components.
|
void |
lookAt(Component component)
Sets the camera to look at the given component.
|
void |
lookAt(Vector3d lookTarget)
Look at the given target point.
|
void |
setLocation(Vector3d location)
Sets the location of the camera.
|
void |
setUpVector(Vector3d upVector)
Sets the upwards vector to the given vector.
|
Vector3d getLocation()
void setLocation(Vector3d location)
location
- the new locationVector3d getDirection()
Vector3d getUpVector()
void lookAt(Vector3d lookTarget)
lookTarget
- the target point for the camera positionvoid lookAt(Component component)
component
- the target componentvoid lookAt(Collection<Component> components)
components
- the target componentsvoid setUpVector(Vector3d upVector)
upVector
- the new upVectorCopyright © 2020 Solibri, Inc.. All rights reserved.