Path: Common/ComponentModels
% Compute the vertices for a cone. The cone emanates from p and points in direction u. If no outputs are specified the cone will be drawn in a new figure. Type Cone for a demo. -------------------------------------------------------------------------- Form: [v, f] = Cone( p, u, halfAngle, l, n) -------------------------------------------------------------------------- ------ Inputs ------ p (3,1) Location of apex u (3,1) Cone axis unit vector halfAngle (1,1) Cone half angle (rad) l (1,1) Length of cone n (1,1) Number of divisions ------- Outputs ------- v (:,3) Vertices f (:,3) Faces --------------------------------------------------------------------------
Common: CommonData/SwooshWatermark Common: ComponentModels/Box Common: ComponentModels/Frustrum Common: General/DeBlankLT Common: General/Watermark Common: Graphics/DrawVertices Common: Graphics/NewFig Common: Graphics/PltStyle Common: Graphics/XLabelS Common: Graphics/YLabelS Common: Graphics/ZLabelS Common: Quaternion/QForm Common: Quaternion/QTForm Common: Quaternion/U2Q Math: Geometry/Perpendicular Math: Linear/Cross Math: Linear/Dot Math: Linear/DupVect Math: Linear/Mag Math: Linear/Unit
Back to the Common Module page