math/ intersects.bi

Summary
math/ intersects.bi
LicenseCopyright © 2009, FreeBASIC Extended Library Development Group
ext.math
Functions
IntersectsDetermines if two line segments intersect or overlap.
IntersectsDetermines if two line segments intersect or overlap.

License

Copyright © 2009, FreeBASIC Extended Library Development Group

Distributed under the FreeBASIC Extended Library Group license.  See accompanying file LICENSE.txt or copy at http://code.google.com- /p- /fb-extended-lib- /wiki- /License

ext.math

Summary
Functions
IntersectsDetermines if two line segments intersect or overlap.
IntersectsDetermines if two line segments intersect or overlap.

Functions

Intersects

declare function Intersects overload (byval a as fbext_Line2(( T_)),
byval b as fbext_Line2(( T_))) as bool

Determines if two line segments intersect or overlap.  If not, false is returned.  Otherwise, true is returned.

Intersects

declare function Intersects overload (
   byval a as fbext_Line2(( T_)),
   byval b as fbext_Line2(( T_)),
   byref solution as fbext_Vector2(( T_))
) as bool

Determines if two line segments intersect or overlap.  If not, false is returned.  Otherwise, if the line segments intersect at a point, then `solution` is assigned this value.  Otherwise, if the line segments overlap (are coincident), then `solution` is assigned the value of the midpoint of the overlap.  In either case, true is returned.

declare function Intersects overload (byval a as fbext_Line2(( T_)),
byval b as fbext_Line2(( T_))) as bool
Determines if two line segments intersect or overlap.