Description Usage Arguments Value See Also
The validPreyObject
function checks whether an object of class
Prey
is a valid object. An object of the Prey-class
is valid when:
(object@velocity)^2 ≤ 70.0
(in this case TRUE is returned), otherwise the message "The velocity is out of bounds." will appear.
1 | validPreyObject(object)
|
object |
An object of class |
TRUE or an error message.
Prey, Prey-class
,
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.