APIdia Launch Partner
Top Interfaces Classes
module gdx

Package com.badlogic.gdx.math


Interface Summary

Modifier and TypeInterface and Description
public interface
Path<T>

Interface that specifies a path of type T within the window 0.0<=t<=1.0.

public interface
public interface
Vector<T extends Vector<T>>

Encapsulates a general vector.

Class Summary

Modifier and TypeClass and Description
public class
Affine2

A specialized 3x3 matrix that can represent sequences of 2D translations, scales, flips, rotations, and shears.

public class
Bezier<T extends Vector<T>>

Implementation of the Bezier curve.

public class
Bresenham2

Returns a list of points at integer coordinates for a line on a 2D grid, using the Bresenham algorithm.

public class
BSpline<T extends Vector<T>>

public class
CatmullRomSpline<T extends Vector<T>>

public class
Circle

A convenient 2D circle class.

public class
ConvexHull

Computes the convex hull of a set of points using the monotone chain convex hull algorithm (aka Andrew's algorithm).

public class
CumulativeDistribution<T>

This class represents a cumulative distribution.

public class
DelaunayTriangulator

Delaunay triangulation.

public class
EarClippingTriangulator

A simple implementation of the ear cutting algorithm to triangulate simple polygons without holes.

public class
Ellipse

A convenient 2D ellipse class, based on the circle class

public class
FloatCounter

Track properties of a stream of float values.

public class
Frustum

A truncated rectangular pyramid.

public class
public class
GridPoint2

A point in a 2D grid, with integer x and y coordinates

public class
GridPoint3

A point in a 3D grid, with integer x and y coordinates

public abstract class
Interpolation

Takes a linear value in the range of 0-1 and outputs a (usually) non-linear, interpolated value.

public class
Intersector

Class offering various static methods for intersection testing between different geometric objects.

public class
MathUtils

Utility and fast math functions.

public class
Matrix3

A 3x3 column major matrix; useful for 2D transforms.

public class
Matrix4

Encapsulates a column major 4 by 4 matrix.

public class
Octree<T>

A static Octree implementation.

public class
Plane

A plane defined via a unit length normal and the distance from the origin, as you learned in your math class.

public class
Polygon

Encapsulates a 2D polygon defined by it's vertices relative to an origin point (default of 0, 0).

public class
public class
Quaternion

A simple quaternion class.

public class
RandomXS128

This class implements the xorshift128+ algorithm that is a very fast, top-quality 64-bit pseudo-random number generator.

public class
Rectangle

Encapsulates a 2D rectangle defined by its corner point in the bottom left and its extents in x (width) and y (height).

public class
ShewchukExactPredicates

Based on Jonathan Richard Shewchuk, "Adaptive Precision Floating-Point Arithmetic and Fast Robust Geometric Predicates" (Discrete & Computational Geometry 18(3):305-363, 1997).

public class
Vector2

Encapsulates a 2D vector.

public class
Vector3

Encapsulates a 3D vector.

public class
Vector4

Encapsulates a 4D vector.

public class
WindowedMean

A simple class keeping track of the mean of a stream of values within a certain window.