[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeedu/kig/misc
From: Dominique Devriese <devriese () kde ! org>
Date: 2005-01-17 10:46:11
Message-ID: 20050117104611.21B941CF93 () office ! kde ! org
[Download RAW message or body]
CVS commit by domi:
try to lessen the impact of bugs
M +7 -0 kigtransform.cpp 1.28
--- kdeedu/kig/misc/kigtransform.cpp #1.27:1.28
@@ -745,4 +745,10 @@ const Transformation Transformation::inv
Transformation::Transformation()
{
+ // this is the constructor used by the static Transformation
+ // creation functions, so mIsHomothety is in general false
+ mIsHomothety = false;
+ for ( int i = 0; i < 3; ++i )
+ for ( int j = 0; i < 3; ++j )
+ mdata[i][j] = ( i == j ) ? 1 : 0;
}
@@ -786,4 +792,5 @@ const Transformation Transformation::sim
//kdDebug() << k_funcinfo << "theta: " << theta << " factor: " << factor << endl;
Transformation ret;
+ ret.mIsHomothety = true;
double costheta = cos( theta );
double sintheta = sin( theta );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic