Spc.NoIntersect: Kind of the opposite of Spc.Intersect(). Takes a ray origin...

Description Usage Arguments Value Examples

View source: R/classdefs.R

Description

Kind of the opposite of Spc.Intersect(). Takes a ray origin and a direction vector of a given length, and returns whether any object falls between along the length of the direction vector. For use by shadowing and illumination calculations

Usage

1
Spc.NoIntersect(ray.origin, ray.direction, object)

Arguments

ray.origin

A positional vector of where the ray originates

ray.direction

A directional vector for the ray's direction

object

The object (elementary or compound) we're testing for intersection

Value

Logical value - TRUE if nothing false along the ray direction vector, FALSE otherwise.

Examples

1
  if (Spc.NoIntersect (c(0,0,0), c(0,1,0),  my_world)) { do_something }

JerBoon/vecspace documentation built on May 26, 2019, 7:28 a.m.