List of: Scheme Extensions
Subjects: Mathematics
Contents: Kernel

Action: Creates a new gvector as a unit vector in the same direction as the specified gvector.

Filename: kern/kern_scm/gvec_scm.cxx

Syntax: (gvector:unitize gvector)

Arg Types: gvector gvector

Returns: gvector

gvector defines the vector to be unitized.

Example: ; gvector:unitize

; Create a gvector.

(define vector1 (gvector 7 3 0 "model"))

;; vector1

; Create a gvector as a unit vector.

(gvector:unitize vector1)

;; #[gvector 0.919145030018058 0.393919298579168 0]