Factory object that can create new PerspectiveCamera
instances.
More...
Factory object that can create new PerspectiveCamera
instances.
◆ Builder()
◆ Build()
Returns a new perspective camera.
- Returns
- a new perspective camera.
◆ Dispose()
void Luciad.Cameras.PerspectiveCamera.Builder.Dispose |
( |
| ) |
|
|
inline |
◆ Eye()
Sets the eye the position of the new camera.
- Parameters
-
eye | the position of the new camera. |
- Returns
- this builder
◆ FovY()
Sets the vertical field of view.
- Note
- The horizontal field of view will be derived from vertical field of view based on the aspect ratio. You can convert between horizontal and vertical field-of-view angles using the following formulae:
double aspectRatio = (double)(camera.Width) / camera.Height;
Angle cameraFovX = Angle.FromRadians(2.0 * Math.Atan(Math.Tan(camera.FovY.Radians / 2.0) * aspectRatio));
Angle newFovX = 60.0;
Angle newFovY = Angle.FromRadians(2 * Math.Atan(Math.Tan(newFovX.Radians / 2.0) / aspectRatio));
- Parameters
-
fovY | the new vertical field of view. |
- Returns
- this builder
◆ Look()
Sets the position and orientation of the new camera.
- Parameters
-
look | the position and orientation of the new camera. |
- Returns
- this builder
◆ LookAt()
Sets the description of what the camera is looking at and the orientation of the camera.
- Parameters
-
lookAt | the description of what the camera is looking at and the orientation of the camera. |
- Returns
- this builder
◆ LookFrom()
Sets the description of the position and orientation of the new camera.
- Parameters
-
lookFrom | the description of the position and orientation of the new camera. |
- Returns
- this builder
◆ Orientation()
Sets the forward the viewing direction of the new camera and the camera's up direction.
- Parameters
-
forward | the viewing direction of the new camera |
up | the camera's up direction |
- Returns
- this builder