public:
/*
- ** Converstion Classes
+ ** Conversion Classes
*/
class rad;
class rot;
/*
- ** Trigometric Classes
+ ** Trigonometric Classes
*/
class sin;
/*
* NearestPointOnCurve :
* Compute the parameter value of the point on a Bezier
- * curve segment closest to some arbtitrary, user-input point.
+ * curve segment closest to some arbitrary, user-input point.
* Return the point on the curve at that parameter value.
*
* value_type& P; The user-supplied point
** few microseconds faster, but a few tests on my
** PowerBook G4 have proved otherwise. Indeed I loose
** several microseconds using this "optimized" method.
- ** Bizzare.
+ ** Bizarre.
** - darco (8-17-2002)
{
timestamp endtime=get_current_time()+seconds_to_timestamp(length);
bool operator!()const { return v==unit(0); }
/*
- ** Converstion Classes
+ ** Conversion Classes
*/
class radians;
class rotations;
/*
- ** Trigometric Classes
+ ** Trigonometric Classes
*/
class sin;
//typename T::iterator_x iter;
- // Setup the row bufers
+ // Setup the row buffers
for(x=0;x<w;x++)SC0[x+2]=pen.x()[x]*24;
memset(SC1,0,(w+2)*sizeof(typename T::value_type));
memset(SC2,0,(w+2)*sizeof(typename T::value_type));
typename T::pointer SC0=new typename T::value_type[w+1];
typename T::pointer SC1=new typename T::value_type[w+1];
- // Setup the row bufers
+ // Setup the row buffers
for(x=0;x<w;x++)SC0[x+1]=pen.x()[x]*4;
memset(SC1,0,(w+1)*sizeof(typename T::value_type));
assert(obj);
obj->rref();
- // If this is the first reversable handle
+ // If this is the first reversible handle
if(!obj->front_)
{
obj->front_=obj->back_=this;
assert(obj);
obj->runref();
- // If this is the last reversable handle
+ // If this is the last reversible handle
if(obj->front_==obj->back_)
{
obj->front_=obj->back_=0;
/*! Uses the default constructor */
void spawn() { operator=(handle<value_type>(new T())); }
- //! Returns number of reversable instances
+ //! Returns number of reversible instances
count_type
rcount()const
{
#ifdef _MSC_VER
#pragma warning (disable:4786)
-#pragma warning (disable:4290) // MSVC6 doesnt like function declarations with exception specs
+#pragma warning (disable:4290) // MSVC6 doesn't like function declarations with exception specs
#endif
//#define ETL_MUTEX_LOCK() _mutex::lock lock(mutex)
const state_base *prev_state=default_state;
// If we are already in a state, leave it and
- // colapse the state stack
+ // collapse the state stack
if(default_state)
default_state->leave_state(default_context);
const state_base *prev_state=curr_state;
// If we are already in a state, leave it and
- // colapse the state stack
+ // collapse the state stack
if(curr_state)
egress();
if(y0 > y1) std::swap(y0,y1);
//local variable madness
- //all things that want to interoperate should provide a default value constructor for = 0
+ //all things that want to inter-operate should provide a default value constructor for = 0
accumulator_type acum = 0;
int xi=0,yi=0;
if(y0 > y1) std::swap(y0,y1);
//local variable madness
- //all things that want to interoperate should provide a default value constructor for = 0
+ //all things that want to inter-operate should provide a default value constructor for = 0
accumulator_type acum = 0;
int xi=0,yi=0;
contentholder *content;
-public: //structor interface
+public: //constructor interface
value()
:content(0)
{
public: //representation
T obj;
- public: //structor interface
+ public: //constructor interface
holder(const T &o)
:obj(o)