Skip to content

Instantly share code, notes, and snippets.

@diegoeche
Created October 14, 2009 19:13
Show Gist options
  • Save diegoeche/210328 to your computer and use it in GitHub Desktop.
Save diegoeche/210328 to your computer and use it in GitHub Desktop.
sealed case class Sphere (center:Vector3d , radius: Double)
{
val center = center;
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