Skip to content

Class: NoneCollideAlgorithm

NoneCollideAlgorithm provides an algorithm that never detects a collision between shapes, used in testing or as a placeholder algorithm

Implements

Table of contents

Constructors

Methods

Constructors

constructor

+ new NoneCollideAlgorithm(): NoneCollideAlgorithm

Returns: NoneCollideAlgorithm

Methods

CalculateCollisions

CalculateCollisions(shapes: IShape[]): CollisionInfo[]

CalculateCollisions calculates all collisions between the shapes provided, returning a list of CollisionInfos, each representing a Collision.

Parameters:

Name Type
shapes IShape[]

Returns: CollisionInfo[]

Implementation of: ICollisionAlgorithm