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:55, 5 December 2023
, 5 months ago→{{header|Wren}}: Added libheader.
(Added Easylang) |
m (→{{header|Wren}}: Added libheader.) |
||
(One intermediate revision by the same user not shown) | |||
Line 2,088:
=={{header|Wren}}==
{{trans|Kotlin}}
{{libheader|Wren-vector}}
<syntaxhighlight lang="
var intersectPoint = Fn.new { |rayVector, rayPoint, planeNormal, planePoint|
Line 2,118 ⟶ 2,099:
}
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>
|