Advertisement Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

122 Neutral

About jedis1000

  • Rank
  1. jedis1000

    Complete n00b Guide (3dsmax 7)

    I'd say absolutely try out the help tutorials that came with the download/package. Also, I'm with FIRST Robotics, and they gave us a cool link with a video tutorial from Ted Boardman. He knows his stuff, and will walk you through how to do certain things. Here's the link: It's at the bottom of the page, and shows how to do some cool stuff. He assumes you know nothing, which is probably the best case scenario for a beginner. I've met this guy, and he's cool... just try not to get distracted by the beard :)
  2. jedis1000

    Matrix Multiplication

    Hmm... I' guess I'll try it again. I must've fudged something when I converted it to Java. Sorry jyk... double M0 = getWidth(); //Switched these... dammit. double N0 = getHeight(); double M1 = mult.getWidth(); double N1 = mult.getHeight(); Matrix returner = null; if(getWidth() == mult.getHeight()) { returner = new Matrix(getHeight(), mult.getWidth()); for (int i = 0; i < M0; ++i) { for (int j = 0; j < N1; ++j) { returner.setElement(i, j, 0); for (int k = 0; k < N0; ++k) returner.setElement(i, j, returner.getElement(i, j) + getElement(i, k) * mult.getElement(k, j)); } } } else { System.out.println("DIMENSION ERROR!!"); } return returner;
  3. jedis1000

    Matrix Multiplication

    Okay, thanks. I'll see if it works in a sec... This is something that you've never had to do though? Maybe I should just write subclasses for things like QuadMatrix and 3x3 and things like that which ovverride the parent class multiplication method... Does that sound like something useful/working? Also, I just tried the method listed... with no luck. It was a nice try though, and it was able to get 1 or 2 of the elements correct each time. That was probably just by chance, though... I don't think I'll continue working on this right now, but I'll inherit new classes from this one and write multiplication methods for same-dimension Matrix multiplicaton. [Edited by - jedis1000 on July 18, 2005 1:04:47 PM]
  4. jedis1000

    Matrix Multiplication

    First of all, let me say that I realize that this exact same topic is listed here already, but I'm doing something a little different. (If it's not different, sorry!) Here's the deal: I'm writing a Matrix class in Java, and I've set it up so that the class holds the dimensions of the matrix in ints, and holds a 2D array of doubles for the data that the matrix could hold. I'v already implemented adding, subtracting, and scalar multiplication, but I'm a little stuck on multiplying a matrix by another matrix. I know how these calculations would work on paper, but I can't for the life of me figure out how to convert this method to code. (I don't know how to do those nifty code boxes yet, so I'll just post my stuff below.) public class Matrix { double [][] data; //Holds elements in a 2D array of doubles int width, height; //Holds dimension of array ...Ctors/methods con't below... public Matrix multiply(Matrix mult) { //As you can see, you pass in a Matrix object //And it returns a new Matrix with the answer } } I have other methods like add and subtract, which work like this: public void add(Matrix mat) { //Does the addition, and places the answer in the Matrix the func was called from } Subtract and scalar multiplication work the same as add (return-wise) Other than the hard part of multiplying matrices, the class is finished. Can anyone help? -Thanks
  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!