Phyzix
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Boundary Class Referenceabstract

An abstract class to represent a boundary. More...

#include <Boundary.h>

Inheritance diagram for Boundary:
RuntimeBaseTypeIdentifiable CircleBoundary LineSegmentBoundary

Public Member Functions

RuntimeBaseType getBaseType () const override
 
virtual BoundaryIntersectionResult intersects (Boundary *other)=0
 A pure virtual function to check if the boundary intersects with another boundary.
 

Static Public Member Functions

static BoundaryIntersectionResult intersects (Boundaries b1, Boundaries b2)
 A static function to check if two boundaries (list) intersect.
 

Public Attributes

float e = 0.8
 

Detailed Description

An abstract class to represent a boundary.

Member Function Documentation

◆ getBaseType()

RuntimeBaseType Boundary::getBaseType ( ) const
inlineoverridevirtual

Reimplemented from RuntimeBaseTypeIdentifiable.

◆ intersects() [1/2]

static BoundaryIntersectionResult Boundary::intersects ( Boundaries b1,
Boundaries b2 )
inlinestatic

A static function to check if two boundaries (list) intersect.

Parameters
b1
b2
Returns
BoundaryIntersectionResult
See also
Boundaries

◆ intersects() [2/2]

virtual BoundaryIntersectionResult Boundary::intersects ( Boundary * other)
pure virtual

A pure virtual function to check if the boundary intersects with another boundary.

Parameters
other
Returns
BoundaryIntersectionResult

Implemented in CircleBoundary, and LineSegmentBoundary.

Member Data Documentation

◆ e

float Boundary::e = 0.8

Coefficient of restitution


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