ContentsIndexReferenceHome
PreviousUpNext
plotObject
MATLAB
plotObject(Targ,[G])
Description

Displays a 3-D plot of a given object in the object's coordinate frame. Includes vertices, unit vectors in direction of motion and zenith, hitPoint and trackPoint if specified. Use RotateObject to plot the object in alternate coordinate frames.

Parameters
Parameters 
Description 
Targ [struct] 
Target structure form TargStruct with an object defined or object structure as from Targ.Object 
G [struct] 
(Optional) Geometry structure from GeomStruct. Only used when Targ is a target structure to convert Targ.HELpt to the object coordinate frame when Targ.Object.hitPoint is empty. 
Examples

>> Targ = TargStruct('cone',[0.5,2,4]) 

>> plotObject(Targ.Object) 

  • Display the object in the objects (x,y,z) coordinate frame
>> plotObject(RotateObject(Targ.Object,[0 0 1],[1 0 0])) 

  • Display object rotated such that the direction of motion is in the x-axis and the zenith direction is in the z-axis
 

See Also
Group
Made with Doc-O-Matic.
Copyright (c) 2009. All rights reserved.
What do you think about this topic? Send feedback!