com.badlogic.gdx.math.collision
Class Segment

java.lang.Object
  extended by com.badlogic.gdx.math.collision.Segment
All Implemented Interfaces:
Serializable

public class Segment
extends Object
implements Serializable

A Segment is a line in 3-space having a staring and an ending position.

Author:
mzechner
See Also:
Serialized Form

Field Summary
 Vector3 a
          the starting position
 Vector3 b
          the ending position
 
Constructor Summary
Segment(float aX, float aY, float aZ, float bX, float bY, float bZ)
          Constructs a new Segment from the two points given.
Segment(Vector3 a, Vector3 b)
          Constructs a new Segment from the two points given.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

a

public final Vector3 a
the starting position


b

public final Vector3 b
the ending position

Constructor Detail

Segment

public Segment(Vector3 a,
               Vector3 b)
Constructs a new Segment from the two points given.

Parameters:
a - the first point
b - 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 point
aY - the y-coordinate of the first point
aZ - the z-coordinate of the first point
bX - the x-coordinate of the second point
bY - the y-coordinate of the second point
bZ - the z-coordinate of the second point


Copyright © 2014. All Rights Reserved.