module PF::G3d

Defined in:

g3d.cr

Class Method Summary

Class Method Detail

def self.line_intersects_plane(plane_point : Vector3(Float64), plane_normal : Vector3(Float64), line_start : Vector3(Float64), line_end : Vector3(Float64)) #

Given a point on a plane plane_point, and a normal to the plane plane_normal, see if a line from line_start to line_end intersects a plane, and return the point at intersection


[View source]