Click or drag to resize

Camera Class

Class for managing the state of a camera.
Inheritance Hierarchy
SystemObject
  Demo3D.VisualsCamera

Namespace:  Demo3D.Visuals
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 11.0.0.7658
Syntax
C#
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
public class Camera : ICloneable

The Camera type exposes the following members.

Constructors
  NameDescription
Public methodCamera
Initializes a new instance of the Camera class
Top
Properties
  NameDescription
Public propertyHeadTarget
Calculate the head target given the HeadYawPitchRoll offset for VR.
Public propertyHeadYawPitchRoll
Camera rotation offset useful for VR headsets (in radians).
Public propertyPlanView
Public propertyPosition
The Camera Position in X,Y,Z coordinates, looking at the origin.
Public propertyRotation
Calculate the current rotation of the camera.
Public propertyTarget
The Camera Translation in X,Y,Z coordinates away from origin.
Top
Methods
  NameDescription
Public methodClone
Copy of the camera.
Public methodGetAxes
Get the rotation axes including the HeadYawPitchRoll offset.
Public methodGetBodyAxes
Get the rotation axes excluding the HeadYawPitchRoll offset.
Public methodGetBodyMatrix
Get the orientation of the camera body without the HeadYawPitchRoll offset.
Public methodGetMatrix
Get the matrix to position the camera.
Public methodPan
Move the camera perpendicular to the camera/target vector.
Public methodRotate
Rotate the camera position keeping the target at the center.
Public methodSetFromVisual
Place the camera at the same position and orientation as the visual (looking down its positive Z axis).
Public methodToString
String version of the camera position.
(Overrides ObjectToString.)
Public methodWalk
Move camera and target/focus around in the X/Z plane as if walking.
Public methodZoom
Get closer or further away from the target.
Public methodZoomAlong
Get closer along an axis towards a world location.
Top
See Also