• 320 likes • 461 Views
Ten Bouncing Balls. Presented by Quentin Ochem. university.adacore.com. {X, Y}. {X’ = X + Dx Y’ = Y + Dy}. Checks if a value is within an range. Moves using a vector. Get access to random functions. Initializes a generator to the default. Value in [0.0 .. 1.0]. Value in [0.0 .. 0.05].
E N D
Ten Bouncing Balls Presented by Quentin Ochem university.adacore.com
{X, Y} {X’ = X + Dx Y’ = Y + Dy}
Value in [0.02 .. 0.07] Value in [0.0 .. 1.0]
Value in [0.02 .. 0.07] Value in {-1.0, 1.0}
The array contains a number of elements to be specified at declaration
Initializes each component through the same record aggregate
“others =>” is missing to specifythat a value is givento all objects