Find the intersection of a line with a plane: Difference between revisions
Find the intersection of a line with a plane (view source)
Revision as of 11:53, 5 December 2023
, 5 months ago→{{header|Wren}}: Now uses vector module.
(Added Easylang) |
(→{{header|Wren}}: Now uses vector module.) |
||
Line 2,088:
=={{header|Wren}}==
{{trans|Kotlin}}
<syntaxhighlight lang="
var intersectPoint = Fn.new { |rayVector, rayPoint, planeNormal, planePoint|
Line 2,118 ⟶ 2,098:
}
var rv =
var rp =
var pn =
var pp =
var ip = intersectPoint.call(rv, rp, pn, pp)
System.print("The ray intersects the plane at %(ip).")</syntaxhighlight>
|