Vector Math Library

The Vector Math Library is a required library for creating Java 3D objects. The Vector Math Library is packaged separately so that other Java APIs or non-3D applications might make use of it.

The main purpose of the Vector Math Library is to provide methods for matrix and vector mathematics as well as methods for dealing with color, positions, and volumes.

A brief review of the methods is provided here.

Tuples

Tuples store two, three, and four element values that are used to represent points, coordinates, and vectors. For example, a color can be stored in the tuple with three floating-point values (one each for red, green, and blue). The Java 3D class for a color specified in this way is Color3f. Note that there are tuples ...

Get Java™ Media APIs: Cross-Platform Imaging, Media, and Visualization now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.