Uses of Class
tripleplay.util.Randoms

Packages that use Randoms
Package
Description
 
 
  • Uses of Randoms in tripleplay.particle.init

    Methods in tripleplay.particle.init with parameters of type Randoms
    Modifier and Type
    Method
    Description
    Lifespan.random(Randoms rando, float min, float max)
    Returns an initializer that provides a random lifespan between min and max.
    Velocity.randomCircle(Randoms rando, float maximum)
    Returns an initializer that provides a velocity in a random direction with the specified maximum magnitude.
    Velocity.randomCircle(Randoms rando, float min, float max)
    Returns an initializer that provides a velocity in a random direction with the specified minimum and maximum magnitude.
    Velocity.randomNormal(Randoms rando, float mean, float dev)
    Returns an initializer that provides a normally distributed random velocity with the specified mean and standard deviation parameters.
    Velocity.randomNormal(Randoms rando, float xMean, float xDev, float yMean, float yDev)
    Returns an initializer that provides a normally distributed random velocity with the specified mean and standard deviation parameters.
    Transform.randomOffset(Randoms rando, float noise)
    Returns an initializer that adjusts the particle's position randomly from its current location by up to noise units in both x and y.
    Transform.randomPos(Randoms rando, float x, float y, float width, float height)
    Returns an initializer that configures a particle's position in a random region.
    Transform.randomScale(Randoms rando, float minScale, float maxScale)
    Returns an initializer that scales its previously assigned transform by an evenly distributed random amount within the specified range.
    Velocity.randomSquare(Randoms rando, float xRange, float yRange)
    Returns an initializer that provides a uniformly distributed random velocity.
    Velocity.randomSquare(Randoms rando, float minX, float maxX, float minY, float maxY)
    Returns an initializer that provides a uniformly distribted random velocity in the range minX to maxX and similarly for the y direction.
  • Uses of Randoms in tripleplay.util

    Methods in tripleplay.util that return Randoms
    Modifier and Type
    Method
    Description
    static Randoms
    Randoms.with(Random rand)
    A factory to create a new Randoms object.