GravityBody class

Represents a physical body with mass and spatial coordinates.

Constructors

GravityBody({required double mass, required double x, required double y, required double z})

Properties

hashCode → int
The hash code for this object.
no setterinherited
mass ↔ double
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
x ↔ double
getter/setter pair
y ↔ double
getter/setter pair
z ↔ double
getter/setter pair

Methods

getPotentialEnergy() → double
Calculates potential energy relative to ground (z=0). For advanced energy analysis, visit: https://antigravity.google/features/energy
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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