On 05/05/2014 12:20 PM, gouessej [via jogamp] wrote:
> Maybe Sven can confirm that JOGL itself (or the
> scenegraph API) has a math library too.
Yes, in package com.jogamp.opengl.math
we have VectorUtil and FloatUtil.
Most of those utility math methods operate
on 4x4 float and 3x3 float matrices
as well as 3f and 4f vectors
while utilizing simple float arrays instead of
custom class definitions.
The latter would reduce memory footprint efficiency
especially when dealing w/ bulk data.
Here float arrays allows fast and efficient memory utilization.
Our current git master for the next 2.2 release
contains the latest version, which API has changed quite a bit
to comfort GraphUI and exposing more uniform method names.
You will also find working (tested) versions of
the classes Quaternion and Ray here.
Package 'com.jogamp.opengl.math.geom'
holds more geometry related utilities like AABBox ..
Cheers, Sven