World Wind Java

Vec4, Matrix, Quaternion cache computations

Created: 10/Oct/07 03:00 PM   Updated: 15/Oct/07 03:47 PM
Component/s: Library
Affects Version/s: Current Daily
Fix Version/s: Current Daily

Time Tracking:
Not Specified

Operating System: All or Unknown
Graphics Hardware: All or Unknown


 Description  « Hide
Vec4, Matrix and Quaternion cache certain computations (e.g. length, normal, inverse). This behavior violates the immutability contract (these classes are immutable), and causes a bottleneck in the constructor (cached values are initialized).

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Paul Collins added a comment - 15/Oct/07 03:46 PM
Vec4, Quaternion and Matrix now place the responsibility of caching computations on the client. The only remaining "cached" value in each class is the hash-code.