Action:
|
Determines if two gvectors are parallel.
|
|
Filename:
|
kern/kern_scm/gvec_scm.cxx
|
|
Syntax:
|
(gvector:parallel? gvector1 gvector2)
|
|
Arg Types:
|
gvector1
|
gvector
|
|
gvector2
|
gvector
|
|
Returns:
|
boolean
|
|
Description:
|
This extension returns
#t if
gvector1 and
gvector2 are parallel; otherwise, it returns
#f. A zero
gvector is not parallel to anything, including itself, so it causes the extension to return
#t.
|
|
|
gvector1 specifies the first vector.
|
|
|
gvector2 specifies the second vector.
|
|
Example:
|
; gvector:parallel?
|
|
; Determine if two gvectors are parallel.
|
|
(gvector:parallel? (gvector 3 5 0) (gvector 6 10 0))
|
|
;; #t
|
|
(gvector:parallel? (gvector 1 0 0) (gvector 0 1 0))
|
|
;; #f
|