Package com.badlogic.gdx.math.collision
Class Segment
- java.lang.Object
-
- com.badlogic.gdx.math.collision.Segment
-
- All Implemented Interfaces:
java.io.Serializable
public class Segment extends java.lang.Object implements java.io.Serializable
A Segment is a line in 3-space having a starting and an ending position.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
hashCode()
float
len()
float
len2()
-
-
-
Constructor Detail
-
Segment
public Segment(Vector3 a, Vector3 b)
Constructs a new Segment from the two points given.- Parameters:
a
- the first pointb
- the second point
-
Segment
public Segment(float aX, float aY, float aZ, float bX, float bY, float bZ)
Constructs a new Segment from the two points given.- Parameters:
aX
- the x-coordinate of the first pointaY
- the y-coordinate of the first pointaZ
- the z-coordinate of the first pointbX
- the x-coordinate of the second pointbY
- the y-coordinate of the second pointbZ
- the z-coordinate of the second point
-
-