Maths - Matrix Code - Martin Baker (original) (raw)

related classes

h file

/Title: mjbWorld Copyright (c) 1998-2007 Martin John Baker This program is free software; you can redistribute it and/or modify it under the terms of the GNU General public: License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General public: License for more details.For information about the GNU General public: License see http://www.gnu.org/To discuss this program http://sourceforge.net/forum/forum.php?forum_id=122133 also see website https://www.euclideanspace.com/ /__gc class sftransform : public property { public: double m00; public: double m01; public: double m02; public: double m03; public: double m10; public: double m11; public: double m12; public: double m13; public: double m20; public: double m21; public: double m22; public: double m23; public: double m30; public: double m31; public: double m32; public: double m33; public: sftransform() ; public: ~sftransform() ;public: sftransform(sftransform a);public: sftransform(sftransform a,sftransform* b); public: void setIdentity(); public: String* vrmlType(); public: static String* vrmlType_s(){ return "SFTransform"; } public: property* clone() ; /** create an array of the appropriate type

cpp file

/Title: mjbWorld Copyright (c) 1998-2002 Martin John BakerThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General License for more details.For information about the GNU General License see http://www.gnu.org/To discuss this program http://sourceforge.net/forum/forum.php?forum_id=122133 also see website https://www.euclideanspace.com/ /#include "mjbModel.h"sftransform::sftransform() { m00 = 0.0; m01 = 0.0; m02 = 0.0; m03 = 0.0; m10 = 0.0; m11 = 0.0; m12 = 0.0; m13 = 0.0; m20 = 0.0; m21 = 0.0; m22 = 0.0; m23 = 0.0; m30 = 0.0; m31 = 0.0; m32 = 0.0; m33 = 0.0; } sftransform::sftransform(sftransform a) { m00 = a->m00; m01 = a->m01; m02 = a->m02; m03 = a->m03; m10 = a->m10; m11 = a->m11; m12 = a->m12; m13 = a->m13; m20 = a->m20; m21 = a->m21; m22 = a->m22; m23 = a->m23; m30 = a->m30; m31 = a->m31; m32 = a->m32; m33 = a->m33; }sftransform::sftransform(sftransform a,sftransform* b) { combine(a,b); }sftransform::~sftransform() { }void sftransform::setIdentity(){ m00 = 1.0; m01 = 0.0; m02 = 0.0; m03 = 0.0; m10 = 0.0; m11 = 1.0; m12 = 0.0; m13 = 0.0; m20 = 0.0; m21 = 0.0; m22 = 1.0; m23 = 0.0; m30 = 0.0; m31 = 0.0; m32 = 0.0; m33 = 1.0; }String* sftransform::vrmlType(){ return "SFTransform"; }property* sftransform::clone() { //Console::WriteLine("sfparam::clone"); return new sftransform(this); }/** create an array of the appropriate type

This site may have errors. Don't use for critical systems.

Copyright (c) 1998-2023 Martin John Baker - All rights reserved - privacy policy.