Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

RecTransform Class Reference

#include <imgmap.h>

List of all members.

Public Methods

 RecTransform::RecTransform (float aoffx, float aoffy, float ascalex, float ascaley)
Rectangle operator() (Rectangle &myrect)

Public Attributes

float power


Member Function Documentation

RecTransform::RecTransform::RecTransform float    aoffx,
float    aoffy,
float    ascalex,
float    ascaley
[inline]
 

00043       :
00044    offx(aoffx), offy(aoffy), scalex(ascalex), scaley(ascaley), power(1)
00045    {}

Rectangle RecTransform::operator() Rectangle   myrect [inline]
 

00048    {
00049       myrect.left*=(1-power+scalex*power);
00050       myrect.left+=offx*power;
00051       myrect.top*=(1-power+scaley*power);
00052       myrect.top+=offy*power;
00053       myrect.width*=(1-power+scalex*power);
00054       myrect.height*=(1-power+scaley*power);
00055       return myrect;
00056    }


Member Data Documentation

float RecTransform::power
 


The documentation for this class was generated from the following file:
Generated on Mon Apr 7 19:43:25 2003 for DuTree by doxygen1.2.18