User Tools

Site Tools


jvs:cigal:manual:chapter6:r_vecmult

This is an old revision of the document!


CIGAL Reference Manual, Chapter 6 (RealTime): r_vecmult

r_vecmult -- Multiply (or divide) vector variables

usage: r_vecmult opflg eflag ltime Vec1 Vec2 NewVec Flag

R_VECMULT is a REALTIME operator that multiplies values to 2-D or 3-D vector VEC1.

VEC2 can be another vector (same dimension as VEC1), or it can be a scalar value. If it is a scalar (single value) then it will be multiplied by every element of VEC1.

NEWVEC is the output vector; it must be the same dimension as VEC1.
If NEWVEC is not specified, the new values will be stored in VEC1.

FLAG: 0 - default

    2 - 2-D vectors (default)
    3 - 3-D vectors
    4 - divide VEC1 by VEC2 (instead of multiplying)
    8 - just use 1 value from VEC2 (scalar multiplication)

See Also:
R_VECADD] [[jvs:cigal|CIGAL Home, CIGAL Manual, RealTime List, Manual Help

jvs/cigal/manual/chapter6/r_vecmult.1349819841.txt.gz · Last modified: 2014/08/04 16:03 (external edit)