validPreyObject: Check the validity of an object of class Prey.

Description Usage Arguments Value See Also

Description

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.

Usage

1

Arguments

object

An object of class Prey.

Value

TRUE or an error message.

See Also

Prey, Prey-class,


mverouden/rsfour documentation built on May 25, 2019, 5:01 a.m.