ArrayCollisionMatrix class

Collision "matrix". It's actually a triangular-shaped array of whether two bodies are touching this step, for reference next step

Constructors

ArrayCollisionMatrix([List<double>? matrix])

Properties

hashCode int
The hash code for this object.
no setterinherited
matrix List<double>
The matrix storage.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

get(Body bi, Body bj) double
Get an element
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Sets all elements to zero
set(Body bi, Body bj, bool value) → void
Set an element
setNumObjects(int n) → void
Sets the max number of objects
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited