Skip to content

Instantly share code, notes, and snippets.

@diegoeche
Created October 14, 2009 19:18
Show Gist options
  • Save diegoeche/210333 to your computer and use it in GitHub Desktop.
Save diegoeche/210333 to your computer and use it in GitHub Desktop.
import javax.vecmath._;
case class Sphere(center:Vector3d , radius: Double) {
def intersect (): Option [(Vector3d)]= {
return Some(this.center);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment