import { rsd } from './randomSeed';
/**
 * Returns a vector with random numbers, Good for rotation on vegetation.
 * @example
 * ```
const grass = getPrefab({
  id: 'en_p_jungle_grass_01',
  r: tiltiness(0.3),
});
addTo(root, grass);
 * ```
 */
export const tiltiness = (val = 0.1, seed = undefined) => {
    const tiltK = 80;
    const tiltValX = rsd(seed).range(val * tiltK, val * -tiltK);
    const tiltValZ = rsd(seed).range(val * tiltK, val * -tiltK);
    const r = [tiltValX, rsd(seed).range(0, 360), tiltValZ];
    return r;
};
//# sourceMappingURL=tiltiness.js.map