List of: Scheme Extensions
Subjects: Mathematics, Transforms
Contents: Kernel

Action: Applies a transform to a gvector.

Filename: kern/kern_scm/gvec_scm.cxx

Syntax: (gvector:transform gvector transform)

Arg Types: gvector gvector

transform transform

Returns: gvector

gvector specifies the gvector to apply the transformation.

transform could be any valid transform.

Example: ; gvector:transform

; Create a gvector.

(define vector1 (gvector 1 1 0))

;; vector1

; Apply a transform to a gvector.

(gvector:transform vector1

(transform:reflection (position 0 0 0)

(gvector 1 0 0)))

;; #[gvector -1 1 0]