Description:
|
A
gvector is a composition of three real numbers representing the
x,
y, and
z components of a 3D vector. This is an
ACIS-defined Scheme data type used to represent a (mathematical) vector with magnitude and direction. It is named
gvector only to differentiate it from the inherent Scheme data type
vector, which represents an array.
|
|
Derivation:
|
gvector : scheme-object
|
|
C++ Type:
|
SPAvector
|
|
External Rep:
|
#[gvector %.15g %.15g %.15g]
|
|
where the first double number is the
gvector's
x component,
|
|
the second double number is the
gvector's
y component,
|
|
and the third double number is the
gvector's
z component.
|
|
Example:
|
; gvector (data type)
|
|
; Define and inquire a gvector object.
|
|
(define x-vector (gvector 1 0 0))
|
|
;; x-vector
|
|
(gvector? x-vector)
|
|
;; #t
|