espresso3d.engine.geometry
Class E3DLine
java.lang.Object
espresso3d.engine.base.E3DEngineItem
espresso3d.engine.renderer.base.E3DRenderable
espresso3d.engine.geometry.E3DLine
- public class E3DLine
- extends E3DRenderable
- Author:
- espresso3d
A basic line class used in the engine
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
E3DLine
public E3DLine(E3DEngine engine)
E3DLine
public E3DLine(E3DEngine engine,
E3DVector3F startPos,
E3DVector3F endPos)
E3DLine
public E3DLine(E3DEngine engine,
E3DVector3F startPos,
E3DVector3F endPos,
E3DVector3F color)
E3DLine
public E3DLine(E3DEngine engine,
E3DVector3F startPos,
E3DVector3F endPos,
E3DVector3F startColor,
E3DVector3F endColor)
getEndColor
public E3DVector3F getEndColor()
- Returns:
- Returns the endColor.
setEndColor
public void setEndColor(E3DVector3F endColor)
- Parameters:
endColor - The endColor to set.
getStartColor
public E3DVector3F getStartColor()
- Returns:
- Returns the startColor.
setStartColor
public void setStartColor(E3DVector3F startColor)
- Parameters:
startColor - The startColor to set.
getEndPos
public E3DVector3F getEndPos()
- Returns:
- Returns the endPos.
setEndPos
public void setEndPos(E3DVector3F endPos)
- Parameters:
endPos - The endPos to set.
getStartPos
public E3DVector3F getStartPos()
- Returns:
- Returns the startPos.
setStartPos
public void setStartPos(E3DVector3F startPos)
- Parameters:
startPos - The startPos to set.
getEngine
public E3DEngine getEngine()
- Overrides:
getEngine in class E3DEngineItem
- Returns:
- Returns the engine.
setEngine
public void setEngine(E3DEngine engine)
- Overrides:
setEngine in class E3DEngineItem
- Parameters:
engine - The engine to set.
getFloatVertexArray
public float[] getFloatVertexArray()
getFloatColorArray
public float[] getFloatColorArray()
toString
public java.lang.String toString()
getClosestPointToPoint
public E3DVector3F getClosestPointToPoint(E3DVector3F point)
- Returns the closest point in this line segment to the given point
- Parameters:
point -
- Returns:
getDistanceFromPoint
public double getDistanceFromPoint(E3DVector3F point)
renderAtPosition
public void renderAtPosition(E3DVector3F position)
- Specified by:
renderAtPosition in class E3DRenderable