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

Action: Tests whether a ray is valid.

Filename: kern/kern_scm/ray_scm.cxx

Syntax: (ray:valid? ray)

Arg Types: ray ray

Returns: boolean

Description: A ray is considered invalid if the length of the vector is zero.


ray specifies the ray to be tested for validity.

Example: ; ray:valid?

; Test whether an interactively read ray is valid.

(ray:valid? (read-ray))

;; #t
PDF/KERN/15SCR.PDF
HTM/DATA/KERN/KERN/15SCR/0005.HTM