Exemplo n.º 1
0
        public override float IntersectDistance(vec3 rayOrigin, vec3 rayDir)
        {
            float distance;

            GeometryMath.intersectRayPlane(rayOrigin, glm.normalize(rayDir), origin, normal, out distance);
            return(distance);
        }
Exemplo n.º 2
0
        public override bool Intersects(vec3 rayOrigin, vec3 rayDir)
        {
            float distance;

            return(GeometryMath.intersectRayPlane(rayOrigin, glm.normalize(rayDir), origin, normal, out distance));
        }