The com.jme3.math
package provides mathematic data structures
and utilities which are used by the rest of the engine.
The math package provides the following classes:
General purpose vectors
- {@link com.jme3.math.Vector2f} - 2D general purpose vector
- {@link com.jme3.math.Vector3f} - 3D general purpose vector
- {@link com.jme3.math.Vector4f} - 4D general purpose vector
Special purpose vectors
- {@link com.jme3.math.ColorRGBA} - Floating-point RGB color with alpha
- {@link com.jme3.math.Quaternion} - Specialized 4D data structure to represent rotation
Matrices
- {@link com.jme3.math.Matrix3f} - 3x3 matrix, usually used to represent rotation
- {@link com.jme3.math.Matrix4f} - 4x4 matrix, used as an efficient transform representation
Shapes
- {@link com.jme3.math.AbstractTriangle} - Abstract triangle. Data to be provided by implementation
- {@link com.jme3.math.Triangle} - Concrete implementation of AbstractTriangle with center and normal vectors
- {@link com.jme3.math.Line} - Infinite 3D line
- {@link com.jme3.math.LineSegment} - 3D line with start and end point
- {@link com.jme3.math.Plane} - 3D plane
- {@link com.jme3.math.Ray} - 3D ray
- {@link com.jme3.math.Rectangle} - 3D rectangle
- {@link com.jme3.math.Ring} - 3D ring
Curves
- {@link com.jme3.math.Spline} - 3D curve defined by control points and a function
Utility classes
- {@link com.jme3.math.Transform} - Representation of a transform with translation, rotation, and scale
- {@link com.jme3.math.FastMath} - Contains static methods for floating-point math
- {@link com.jme3.math.CurveAndSurfaceMath} - Contains static methods specific to curve and surface math
- {@link com.jme3.math.Eigen3f} - Provides computation of eigenvectors given a matrix