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

Action: Determines if a Scheme object is a ray.

Filename: kern/kern_scm/ray_scm.cxx

Syntax: (ray? object)

Arg Types: object scheme-object

Returns: boolean


object specifies the scheme-object to be queried for a ray.

Example: ; ray?

; Create a ray.

(define ray1 (ray (position -5 -5 -5)


(gvector 1 0 0)))

;; ray1

; Determine if the ray is actually a ray.

(ray? ray1)

;; #t

; Determine if a position is a ray.

(ray? (position 0 0 0))

;; #f
PDF/KERN/15SCR.PDF
HTM/DATA/KERN/KERN/15SCR/0006.HTM