Plane

public class Plane

Types

Link copied to clipboard
public enum MaxQuadrants extends Enum<Plane.MaxQuadrants>

Properties

Link copied to clipboard
public final static Plane INSTANCE

Functions

Link copied to clipboard
@FloatRange(from = 0.0, to = 6.283185307179586)
public final static Double angleBetween(ImmutablePosition positionA, ImmutablePosition positionB)
@FloatRange(from = 0.0, to = 6.283185307179586)
public final static Double angleBetween(Float xA, Float yA, Float xB, Float yB)

Calculates the angle between the given positions.

Link copied to clipboard
public final static Float distanceBetween(ImmutablePosition positionA, ImmutablePosition positionB)

Calculates the distance between the given positions.

public final static Float distanceBetween(Float xA, Float yA, Float xB, Float yB)

Calculates the distance between the given coordinates.

Link copied to clipboard
@IntRange(from = 1, to = 4)
public final static Integer quadrantOf(Double angle)
public final static Integer quadrantOf(Double angle, Plane.MaxQuadrants maxQuadrants)
@IntRange(from = 1, to = 4)
public final static Integer quadrantOf(Double angle, Boolean useMiddle)
public final static Integer quadrantOf(Double angle, Plane.MaxQuadrants maxQuadrants, Boolean useMiddle)

Gets the quadrant of the given angle.