| Aerospace Toolbox | ![]() |
h = Aero.Camera
h = Aero.Camera constructs a camera object h for use with an animation object. The camera object uses the registered coordinate transform. By default, this is an aerospace body coordinate system. Axes of custom coordinate systems must be orthogonal.
By default, an Aero.Body object natively uses aircraft x-y-z coordinates for the body geometry and the time series data. Convert time series data from other coordinate systems on the fly by registering a different CoordTransformFcn function.
| Constructor | Description |
|---|---|
| Camera | Construct camera object for use with animation object. |
| Method | Description |
|---|---|
| update | Update camera position based on time and position of other Aero.Body objects. |
| Property | Description | Values |
|---|---|---|
| CoordTransformFcn | Specify a function that controls the coordinate transformation. | MATLAB array |
| PositionFcn | Specify a function that controls the position of a camera relative to an animation body. | MATLAB array |
| Position | Specify position of camera. | MATLAB array [-150,-50,0] |
| Offset | Specify offset of camera. | MATLAB array [-150,-50,0] |
| AimPoint | Specify aim point of camera. | MATLAB array [0,0,0] |
| UpVector | Specify up vector of camera. | MATLAB array [0,0,-1] |
| ViewAngle | Specify view angle of camera. | MATLAB array {3} |
| ViewExtent | Specify view extent of camera. | MATLAB array {[-50,50]} |
| xlim | Specify x-axis limit of camera. | MATLAB array {[-50,50]} |
| ylim | Specify y-axis limit of camera. | MATLAB array {[-50,50]} |
| zlim | Specify z-axis limit of camera. | MATLAB array {[-50,50]} |
| PrevTime | Specify previous time of camera. | MATLAB array {0} |
| UserData | Specify custom data. | MATLAB array {[]} |
![]() | Aero.Body | Aero.FlightGearAnimation | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |