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

Action: Determines if a scheme-object is an entity-with-ray.

Filename: kern/kern_scm/eray_scm.cxx

Syntax: (entray? object)

Arg Types: object scheme-object

Returns: boolean

Description: Returns #t if a scheme-object is an entity-with-ray.


object specifies the scheme-object that has to be queried for an entray.

Example: ; entray?

; Create a solid block.

(define block1


(solid:block (position 0 0 0)


(position 15 15 15)))

;; block1

; Create an entity ray consisting of

; the block and a ray, and determine if

; the result is an entity ray.

(define entray1 (entray block1


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

;; entray1

; Determine if the result is an entity ray.

(entray? entray1)

;; #t
PDF/KERN/12SCA.PDF
HTM/DATA/KERN/KERN/12SCA/0112.HTM