Camera Class |
Namespace: Demo3D.Visuals
[TypeConverterAttribute(typeof(ExpandableObjectConverter))] public class Camera : GlobalizedProperties
The Camera type exposes the following members.
| Name | Description | |
|---|---|---|
| FarClippingDistance |
The near clipping distance for the orthographic camera.
This defaults to 0, which means no clipping regardless of the distance of the camera
from the focal point. Any other value sets the near clipping plane to that value.
| |
| HeadTarget |
Calculate the head target given the HeadYawPitchRoll offset for VR.
| |
| HeadYawPitchRoll |
Camera rotation offset useful for VR headsets (in radians).
| |
| NearClippingDistance |
The near clipping distance for the orthographic camera.
This defaults to 0, which means no clipping regardless of the distance of the camera
from the focal point. Any other value sets the near clipping plane to that value.
| |
| PlanView | ||
| PlanViewRotation |
Rotation of Plan View (in radians)
| |
| Position |
The Camera Position in X,Y,Z coordinates, looking at the origin.
| |
| Rotation |
Calculate the current rotation of the camera.
| |
| Target |
The Camera Translation in X,Y,Z coordinates away from origin.
|
| Name | Description | |
|---|---|---|
| GetAxes |
Get the rotation axes including the HeadYawPitchRoll offset.
| |
| GetBodyAxes |
Get the rotation axes excluding the HeadYawPitchRoll offset.
| |
| GetBodyMatrix |
Get the orientation of the camera body without the HeadYawPitchRoll offset.
| |
| GetMatrix |
Get the matrix to position the camera.
| |
| Pan |
Move the camera perpendicular to the camera/target vector.
| |
| Rotate |
Rotate the camera position keeping the target at the center.
| |
| SetFromVisual |
Place the camera at the same position and orientation as the visual (looking down its positive Z axis).
| |
| ToString |
String version of the camera position.
(Overrides SimpleCustomTypeDescriptor.ToString.) | |
| Walk |
Move camera and target/focus around in the X/Z plane as if walking.
| |
| Zoom |
Get closer or further away from the target.
| |
| ZoomAlong |
Get closer along an axis towards a world location.
|