MassData class

This holds the mass data computed for a shape.

Constructors

MassData()
Blank mass data
MassData.copy(MassData md)
Copies from the given mass data [...]

Properties

center Vector2
The position of the shape's centroid relative to the shape's origin.
final
I double
The rotational inertia of the shape about the local origin.
read / write
mass double
The mass of the shape, usually in kilograms.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

clone() MassData
Return a copy of this object.
set(MassData md) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited