proj home

Files   Classes   Functions   Hierarchy  

randompoint< RG > Class Template Reference

Make random points. More...

#include <random.h>

Collaboration diagram for randompoint< RG >:

List of all members.

Public Types

typedef point2< typename
RG::Ttype > 
pt2
typedef point3< typename
RG::Ttype > 
pt3

Public Member Functions

 randompoint ()
 [0,1] interval.
 randompoint (RG random_)
 Initialize random before sending it in.
pt2 makepoint2 ()
 Make a 2D point.
pt3 makepoint3 ()
 Make a 3D point.

Public Attributes

RG random
 Random number generator.


Detailed Description

template<typename RG = random11<>>
class randompoint< RG >

Make random points.

Definition at line 236 of file random.h.


Member Typedef Documentation

template<typename RG = random11<>>
typedef point2< typename RG::Ttype > randompoint< RG >::pt2

Definition at line 250 of file random.h.

template<typename RG = random11<>>
typedef point3< typename RG::Ttype > randompoint< RG >::pt3

Definition at line 251 of file random.h.


Constructor & Destructor Documentation

template<typename RG = random11<>>
randompoint< RG >::randompoint (  )  [inline]

[0,1] interval.

Definition at line 244 of file random.h.

00244 {}

template<typename RG = random11<>>
randompoint< RG >::randompoint ( RG  random_  )  [inline]

Initialize random before sending it in.

Definition at line 247 of file random.h.

00248     : random(random_) {}


Member Function Documentation

template<typename RG = random11<>>
pt2 randompoint< RG >::makepoint2 (  )  [inline]

Make a 2D point.

Definition at line 254 of file random.h.

References randompoint< RG >::random.

00255     { return pt2(random(),random()); }

template<typename RG = random11<>>
pt3 randompoint< RG >::makepoint3 (  )  [inline]

Make a 3D point.

Definition at line 257 of file random.h.

References randompoint< RG >::random.

00258     { return pt3(random(),random(),random()); }


Member Data Documentation

template<typename RG = random11<>>
RG randompoint< RG >::random

Random number generator.

Definition at line 241 of file random.h.

Referenced by randompoint< RG >::makepoint2(), and randompoint< RG >::makepoint3().


The documentation for this class was generated from the following file:

Generated on Fri Mar 4 00:50:12 2011 for Chelton Evans Source by  doxygen 1.5.8