View Single Post
  #39   Spotlight this post!  
Unread 26-02-2015, 15:39
MatthewC529 MatthewC529 is offline
Lcom/mattc/halp;
AKA: Matthew
FRC #1554 (Oceanside Sailors)
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2013
Location: New York
Posts: 39
MatthewC529 is on a distinguished road
Re: Quotes from the Chief Engineer and I

I mean it does not matter, but the JVM does attempt to store one-dimensional arrays contiguously, especially for primitives. Though there is, of course, no guarantee.

It is just much easier to imagine a matrix with 0,0 at the top left since this is how so many things in Java are represented. The only time I was able to use a non-standard matrix was in LibGDX where it represents it's display with 0,0 at the bottom (though you can flip it).

Of course you are right though, I can represent a Matrix as a NxM length single-dimensional array if I wanted to.
__________________
Team 1554 -- Oceanside Sailors
  • 2013-2014 - Lead/Sole Programmer
  • 2014-2015 - Lead Programmer, President
  • 2015-? - Team 1554 Mentor
Independent Public Projects

Developer at Legend Zero LLC.
Java/C++ Programmer