VegaRise.NET
HomeAPI Reference
Back to DOM

CameraRotationClass

Definition

Namespace
DOM.Elements.Graphics
Assembly
DOM.dll

Represents the rotation applied to a 3D camera.

Remarks

extends (which supplies the latitude and longitude components via and ) with a angle around the view axis. Together, these three angles fully describe the orientation of the camera in a scene-based 3D effect. CameraRotation BasePosition Revolution X Y

Examples

csharp
1// 1. No camera rotation
2var rot = new CameraRotation { Revolution = 0 };
3
csharp
1// 2. Rotate the camera 45° around the view axis
2var rot = new CameraRotation { Revolution = 45 };
3
csharp
1// 3. Rotate with latitude/longitude as well
2var rot = new CameraRotation
3{
4 X = 20,
5 Y = -15,
6 Revolution = 30
7};
8
csharp
1// 4. Attach to a camera
2var camera = new Camera
3{
4 preset = PresetCameraValues.perspectiveAbove,
5 Rotation = new CameraRotation { Revolution = 60 }
6};
7

Properties

RevolutionRotation

Gets or sets the revolution angle around the view axis.

Assign a plain to benefit from the implicit conversion provided by . double Rotation