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

related classes

/Title: mjbWorld
Copyright (c) 1998-2007 Martin John BakerThis 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/ /package mjbModel; import java.lang.ref.; import java.util.
; // for StringTokenizer/** a class to hold a 4x4 matrix and to allow various transforms on it. / public class sftransform extends property {/* element 0,0 of matrix / public double m00; /* element 0,1 of matrix / public double m01; /* element 0,2 of matrix / public double m02; /* element 0,3 of matrix / public double m03; /* element 1,0 of matrix / public double m10; /element 1,1 of matrix / public double m11; /* element 1,2 of matrix */ public double m12; / element 1,3 of matrix / public double m13; / element 2,0 of matrix / public double m20; /* element 2,1 of matrix / public double m21; /* element 2,2 of matrix / public double m22; /* element 2,3 of matrix / public double m23; /* element 3,0 of matrix / public double m30; /* element 3,1 of matrix / public double m31; /* element 3,2 of matrix / public double m32; /* element 3,3 of matrix / public double m33;/* constructor for initialy zero matrix / public 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; }/* copy constructor

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

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