1. I represent a matrix using a float for each element. I don't use arrays, as they are not very efficent for a matrix class. For example, row 2 and column 3 would be represented asm23. Is this smart, or what are some other ways to represent matricies besides arrays?

2. Due to the nature of floating point variables, the length of a unit vector may not necessarily be exactly one. This means the length check

length() == 1.0f

may be false. Would this:

(length > .9999f) && (length < 1.1f)

return true, such as if length was 1.0000034? Or how else should I check for a normalized vector?

Thanks !