Phyzix
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
BoundaryCalculations Class Reference

A class that contains static methods for common calculating intersections between boundaries. More...

#include <BoundaryCalculations.h>

Static Public Member Functions

static BoundaryIntersectionResult intersects (LineSegmentBoundary *line, CircleBoundary *circle, bool flip=false)
 Check if a LineSegmentBoundary and a CircleBoundary intersect or not.
 

Detailed Description

A class that contains static methods for common calculating intersections between boundaries.

Member Function Documentation

◆ intersects()

static BoundaryIntersectionResult BoundaryCalculations::intersects ( LineSegmentBoundary * line,
CircleBoundary * circle,
bool flip = false )
inlinestatic

Check if a LineSegmentBoundary and a CircleBoundary intersect or not.

Parameters
linethe line boundary
circlethe circle boundary
flipwhether to flip the order of the boundaries in the BoundaryIntersectionResult
Returns
the BoundaryIntersectionResult
Note
This method is to be referenced twice once in the LineSegmentBoundary class and once in the CircleBoundary class

The documentation for this class was generated from the following file: