Exemple #1
0
Matrix2x2 Matrix2x2::identity() {

	Vector2 iVec1( 1.f, 0.f );
	Vector2 iVec2( 0.f, 1.f );

	Matrix2x2 result( iVec1, iVec2 );

	return result;

}
Exemple #2
0
Matrix3x3 Matrix3x3::identity() {

	Vector3 iVec1( 1.f, 0.f, 0.f );
	Vector3 iVec2( 0.f, 1.f, 0.f );
	Vector3 iVec3( 0.f, 0.f, 1.f );

	Matrix3x3 result( iVec1, iVec2, iVec3 );

	return result;

}
Exemple #3
0
 Plotter2DObj::Plotter2DObj(const std::string & name) :
     _crange(fBox2()),
     _cwinSize(iVec2()),
     _missedSetParam(false),
     _ownercb(nullptr),
     _data(nullptr),
     _data2(nullptr),
     _rm(nullptr),
     _di(nullptr),
     _opacity(1.0),
     _drawOn(true),
     _suspended(false),
     _name(name),
     _nbth(-1),
     _optionWin(nullptr),
     _extOptionWin(nullptr),
     _progBar(nullptr),
     _nbthl(nullptr),
     _plotNB((int)_totPlotNB)
     {
     _totPlotNB++;
     }
Exemple #4
0
 Plotter2DObj::Plotter2DObj(Plotter2DObj && obj) :
     _crange(fBox2()),
     _cwinSize(iVec2()),
     _missedSetParam(false),
     _ownercb(nullptr),
     _data(nullptr),
     _data2(nullptr),
     _rm(nullptr),
     _di(nullptr),
     _opacity(1.0),
     _drawOn(true),
     _suspended(false),
     _name(std::move(obj._name)),
     _nbth(-1),
     _optionWin(nullptr),
     _extOptionWin(nullptr),
     _progBar(nullptr),
     _nbthl(nullptr),
     _plotNB((int)_totPlotNB)
         {
         if (obj.isInserted()) MTOOLS_DEBUG("move ctor on an inserted plotter2DObj");
         obj.detach(); // detach if needed
         }