Camera class¶
Serves as the base class for cameras that define the view of a scene.
Namespace: Eremex.AvaloniaUI.Controls3D
Assembly: Eremex.Avalonia.Controls3D.dll
NuGet Package: Eremex.Avalonia.Controls3D
Declaration¶
Public Members¶
| name | description |
|---|---|
| DefaultCameraPosition { get; set; } | Gets or sets the direction from which the camera views the scene. The default value is CameraPosition.IsoXYZ. |
| FarClipPlane { get; set; } | Gets or sets the distance from the camera to the far clipping plane. If the value is not a positive number, the control derives the distance from the size of the scene. |
| MaxDistance { get; set; } | Gets or sets the longest distance allowed between the camera and its target. If the value is not a positive number, the control derives the distance from the size of the scene. |
| MinDistance { get; set; } | Gets or sets the shortest distance allowed between the camera and its target. If the value is not a positive number, the control derives the distance from the size of the scene. |
| NearClipPlane { get; set; } | Gets or sets the distance from the camera to the near clipping plane. If the value is not a positive number, the control derives the distance from the size of the scene. |
| Position { get; set; } | Gets or sets the position of the camera in world space. |
| Target { get; set; } | Gets or sets the point that the camera looks at. |
| UpDirection { get; set; } | Gets or sets the direction of the scene that is treated as pointing up. |
| XAxis { get; } | Gets the rightward direction of the camera's coordinate system. |
| YAxis { get; } | Gets the upward direction of the camera's coordinate system. |
| ZAxis { get; } | Gets the camera's Z axis, whose direction is derived from the scene's coordinate system. |
| LookAt(…) | Aims the camera at a point. |
| MoveForward(…) | Moves the camera along its viewing direction, leaving the target and the up direction unchanged. |
| MoveLeft(…) | Pans the camera horizontally, keeping the direction of the view unchanged. |
| MoveUp(…) | Pans the camera vertically, keeping the direction of the view unchanged. |
| Rotate(…) | Orbits the camera around its target, keeping the distance to the target unchanged. |
See Also¶
- namespace Eremex.AvaloniaUI.Controls3D