All pastes #488513 Raw Edit

Mine

public text v1 · immutable
·published 2007-05-15 01:36 UTC
rendered paste body
Plane p = new Plane(Vector3.Up, 1);
Ray ray = new Ray(new Vector3(0, 2, 0), Vector3.Down);

float? distanceToIntersection = ray.Intersects(p);