Action:

Multiplies a gvector by a scalar number to produce a new gvector.


Filename:

kern/kern_scm/gvec_scm.cxx


Syntax:

(gvector:scale gvector scale)


Arg Types:

gvector

gvector


scale

real


Returns:

gvector


Description:

The resulting
gvector is the original gvector scaled by the number.



gvector specifies the original gvector to be scaled by the scaling factor.



scale specifies the scaling factor.


Example:

; gvector:scale


; Multiply two gvectors by a scaling factor.


(gvector:scale (gvector 0 1 0) 3)


;; #[gvector 0 3 0]


(gvector:scale (gvector 0 1 0) 7)


;; #[gvector 0 7 0]
