Skip to main content
5 events
when toggle format what by license comment
May 14, 2016 at 13:23 comment added Superwayne Guess I will add both to my math utils: Vector2? LineIntersectionPoint(...) and bool TryLineIntersectionpoint(... out Vector2 intersectionPoint)
May 14, 2016 at 13:09 comment added sam hocevar I added a zero assignation in the no-intersection case. Note that using bool/out to try something is a standard idiom in the .NET API, see Dictionary.TryGetValue or Int32.TryParse.
May 14, 2016 at 13:06 history edited sam hocevar CC BY-SA 3.0
assign point to zero in the no-intersection case
May 14, 2016 at 11:30 comment added Superwayne I thought about using that (like Unity does with 3D raycasts) but I don't like having the assignment in an if-statement.
May 12, 2016 at 15:45 history answered sam hocevar CC BY-SA 3.0