Search:

Type: Posts; User: pbrockway2

Search: Search took 0.10 seconds.

  1. Replies
    9
    Views
    3,226

    Re: Vector3 Class

    Personally I prefer the second of your add() methods.

    In Java you can create a new vector and, once there are no more references to it, it will softly and suddenly vanish away. You don't have to...
  2. Replies
    9
    Views
    3,226

    Re: Vector3 Class

    When you declare "float[] data = new float[3];" the 3 is the number of elements in the data array.

    If you were to use 2 instead of 3 then the runtime would complain about data[2]. That's because...
Results 1 to 2 of 2