Panda3D
Functions
wander.cxx File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

#include "wander.h"

Go to the source code of this file.

Functions

double rand_float ()
 This function creates a random float point number. More...
 
double random_clamped ()
 This function returns a random floating point number in the range -1 to 1. More...
 

Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
Deepak, John, Navin
Date
2009-10-24

Definition in file wander.cxx.

Function Documentation

◆ rand_float()

double rand_float ( )

This function creates a random float point number.

Definition at line 19 of file wander.cxx.

Referenced by random_clamped().

◆ random_clamped()

double random_clamped ( )

This function returns a random floating point number in the range -1 to 1.

Definition at line 27 of file wander.cxx.

References rand_float().

Referenced by Wander::do_wander().