Package com.jme3.math

The com.jme3.math package provides mathematic data structures and utilities which are used by the rest of the engine.

See: Description

• Interface Summary
Interface Description
EaseFunction
Created by Nehon on 26/03/2017.
• Class Summary
Class Description
AbstractTriangle
A Collidable with a triangular shape.
ColorRGBA
ColorRGBA defines a color made from a collection of red, green and blue values stored in Linear color space.
CurveAndSurfaceMath
This class offers methods to help with curves and surfaces calculations.
Easing
Expose several Easing function from Robert Penner Created by Nehon on 26/03/2017.
Easing.InOut
An Ease function composed of 2 sb function for custom in and out easing
Eigen3f
A calculator for the eigenvectors and eigenvalues of a Matrix3f.
FastMath
FastMath provides 'fast' math approximations and float equivalents of Math functions.
Line
Line defines a line.
LineSegment
LineSegment represents a segment in the space.
MathUtils
Created by Nehon on 23/04/2017.
Matrix3f
Matrix3f defines a 3x3 matrix.
Matrix4f
Matrix4f defines and maintains a 4x4 matrix in row major order.
Plane
Plane defines a plane where Normal dot (x,y,z) = Constant.
Quaternion
Quaternion defines a single example of a more general class of hypercomplex numbers.
Ray
Ray defines a line segment which has an origin and a direction.
Rectangle
Rectangle defines a finite plane within three dimensional space that is specified via three points (A, B, C).
Ring
Ring defines a flat ring or disk within three dimensional space that is specified via the ring's center point, an up vector, an inner radius, and an outer radius.
Spline
Transform
Started Date: Jul 16, 2004

Represents a translation, rotation and scale in one object.
Triangle
Triangle defines a triangle in terms of its vertex locations, with auxiliary storage for its centroid, normal vector, projection, and index.
Vector2f
Vector2f defines a Vector for a two float value vector.
Vector3f
Vector3f defines a Vector for a three float value tuple.
Vector4f
Vector4f defines a Vector for a four float value tuple.
• Enum Summary
Enum Description
Plane.Side
Describe the relationship between a point and a plane.
Spline.SplineType

Package com.jme3.math Description

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:

Special purpose vectors

• ColorRGBA - Floating-point RGB color with alpha
• Quaternion - Specialized 4D data structure to represent rotation

Matrices

• Matrix3f - 3x3 matrix, usually used to represent rotation
• Matrix4f - 4x4 matrix, used as an efficient transform representation

Shapes

• AbstractTriangle - Abstract triangle. Data to be provided by implementation
• Triangle - Concrete implementation of AbstractTriangle with center and normal vectors
• Line - Infinite 3D line
• LineSegment - 3D line with start and end point
• Plane - 3D plane
• Ray - 3D ray
• Rectangle - 3D rectangle
• Ring - 3D ring

Curves

• Spline - 3D curve defined by control points and a function

Utility classes

• Transform - Representation of a transform with translation, rotation, and scale
• FastMath - Contains static methods for floating-point math
• CurveAndSurfaceMath - Contains static methods specific to curve and surface math
• Eigen3f - Provides computation of eigenvectors given a matrix