This shows you the differences between two versions of the page.
jvs:cigal:manual:chapter6:r_vecmult [2012/10/09 21:57] voyvodic created |
jvs:cigal:manual:chapter6:r_vecmult [2023/02/23 18:43] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | **CIGAL Reference Manual, Chapter 6 (RealTime): r_vecmult** | ||
- | ===== r_vecmult -- Multiply (or divide) vector variables ===== | ||
- | **usage: | ||
- | |||
- | 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:**\\ | ||
- | [[jvs: | ||
- | |||
- | [[jvs: | ||
- | [[jvs: | ||
- | [[jvs: | ||
- | [[jvs: | ||