Adjacent Files

Project Info

. > app > src > main > java > james > asteroid > data >


Type: public Matrix

Calculates the position Matrix of the asteroid to draw in the next frame.

Parameter Name Description
speed The speed of the asteroid.
width The width of the drawing canvas.
height The height of the drawing canvas.

Returned Value: The position Matrix of the asteroid. Equals null if the asteroid can no longer be drawn within the given width/height.