コード例 #1
0
 //Find the intersection point with a ray using the formula from the slides
 public override float Intersect(Ray ray)
 {
     return(-(Vector3.Dot(ray.origin, normal) + d) / Vector3.Dot(ray.direction, normal));
 }