manpagez: man pages & more
info mathgl
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.13.1 Traj

Method on mglGraph (C++, Python): void Traj (const mglData &x, const mglData &y, const mglData &z, const mglData &ax, const mglData &ay, const mglData &az, const char *sch="", float len=0)
Method on mglGraph (C++, Python): void Traj (const mglData &x, const mglData &y, const mglData &ax, const mglData &ay, const char *sch="", float zVal=NAN, float len=0)
C function: void mgl_traj_xyz (HMGL gr, const HMDTx, const HMDTy, const HMDTz, const HMDTax, const HMDTay, const HMDTaz, const char *sch, float len)
C function: void mgl_traj_xy (HMGL gr, const HMDTx, const HMDTy, const HMDTax, const HMDTay, const char *sch, float zVal, float len)

The function draws vectors {ax, ay, az} along a curve {x, y, z}. The length of arrows are proportional to \sqrtax^2+ay^2+az^2. String pen specifies the color (see section Line styles). By default (pen="") color from palette is used (see section Pallete and colors). Parameter len set the vector length factor (if non-zero) or vector length to be proportional the distance between curve points (if len=0). The minor sizes of all arrays must be equal and large 2. The plots are drawn for each row if one of the data is the matrix. See also Vect. See section Traj sample, for sample code and picture.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]
© manpagez.com 2000-2024
Individual documents may contain additional copyright information.