entray:ray
List of: Scheme Extensions
Subjects: Ray Testing
Contents: Kernel

Action: Gets the ray component of an entray.

Filename: kern/kern_scm/eray_scm.cxx

Syntax: (entray:ray entray)

Arg Types: entray entray

Returns: ray

Description: Gets the ray component of an entray. An entray is a scheme-object with an entity component and a ray component. Entrays are represented externally in the form #[entray n p (x y z) (a b c)], indicating its entity components are #[entity n p] and its ray components are #[ray (x y z) (a b c)].


entray specifies the entray object that has to be queried.

Example: ; entray:ray

; Create a solid block.

(define block1


(solid:block (position 0 0 0)


(position 15 15 15)))

;; block1

; Create an entity ray and then extract

; the ray portion.

(entray:ray (entray block1


(ray (position 0 0 0) (gvector 0 0 1))))

;; #[ray (0 0 0) (0 0 1)]
PDF/KERN/12SCA.PDF
HTM/DATA/KERN/KERN/12SCA/0111.HTM