Skip to content

Instantly share code, notes, and snippets.

@alecmce
Created May 26, 2010 23:25
Show Gist options
  • Save alecmce/415218 to your computer and use it in GitHub Desktop.
Save alecmce/415218 to your computer and use it in GitHub Desktop.
var ray:Ray3D = new Ray3D(0, 0, -140, 0, 0, 100);
var sphere:Sphere3D = new Sphere3D(40, 0, 0, 0);
var alpha:Number = sphere.intersectRay(ray);
trace(alpha);
// outputs 0.6428719030100183
@timknip
Copy link

timknip commented May 27, 2010

Okay, documentation isn't what it should be. Point taken. But, its open source, so guess you simply have to live with some limitations. Can understand your frustration though, sorry ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment