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.SerializableA 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 booleanequals(java.lang.Object o)inthashCode()floatlen()floatlen2()
-
-
-
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
-
-