Please enable JavaScript.
Coggle requires JavaScript to display documents.
OBJECT
Container (Attributes (Lists and/or Arrays (bodies
A list or…
OBJECT
Container
Attributes
Lists and/or Arrays
bodies
A list or array, that stores all physical objects inside the container, e.g. balls
medium
An object, that defines Medium inside the container
-
gravAcceleration
A variable, that stores value of a gravitational acceleration of world. The unit is m/s^2
outPressure
A variable, that stores value of a pressure outside a container
inPressure
A variable, that stores value of a pressure inside a container
width
A variable, that defines container's width. The unit is px
height
A variable, that defines container's height. The unit is px
-
distScale
A variable, that defines the scale of a distance. It defines how many mm is 1 px.
Methods
-
applyDistScale(unit, distance)
Applies a scale to a distance given in px and returns distance in specified unit eg. 'cm' or 'mm'
OBJECT
Substance
Attributes
-
-
density
A variable, that stores a value of density of the Material
color
Color of the material. Format is "rgba(r, g, b, opacity)\"
phaseChart
An object, that stores information about phase changes
-
OBJECT
PhaseChart
Attributes
freezingPoint
An array that stores information about temperature and pressure below which substance will be solid
boilingPoint
An array that stores information about temperature and pressure above which substance will be in gas state
Methods
actualState(temp, pressure)
A method, which returns actual state of substance
OBJECT
Body
Attributes
-
-
width
A variable, that defines width of the Body. It can be also its X diameter
height
A variable, that defines height of the Body. It can be also its Y diameter
material
An object, that defines which substance is Body made of
-