An S4 class to represent a smaller predator.
location
A numerical vector of length 2 specifying the x- and y-position of the object [Default: c(0, 0)].
velocity
A numeric vector for specifying the object's velocity, where the first value specifies the velocity in the x-direction and the second in the y-direction [Default: c(0.0, 0.0)].
active
A length-one logical vector indicating whether the object is active [Default: TRUE].
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.