public interface Racetrack extends Landscape
Modifier and Type | Method and Description |
---|---|
java.awt.image.BufferedImage |
generateHeightfieldImage(int widthInPixel,
int heightInPixel)
generates the height field
|
Vector |
getBoundingBoxMax() |
Vector |
getBoundingBoxMin() |
double |
getHeight(Vector position) |
java.awt.Color |
getHeightfieldImageBorderColor() |
Vector |
getHeightGradient(Vector position)
accesses the heightmap to determine the gradient
|
double |
getLapProgress(Vector position)
Assigns a progress to any point in the landscape.
|
Vector |
getStartAndFinishLineBegin()
The start-and-finish line that this function returns, spans the entire
width of the road (only the asphalt part).
|
Vector |
getStartAndFinishLineEnd()
The start-and-finish line that this function returns, spans the entire
width of the road (only the asphalt part).
|
Vector |
getTrackPositionAt(double trackPctRelative)
gives a point inside the track
|
drawLandscape, getTerrainType
java.awt.image.BufferedImage generateHeightfieldImage(int widthInPixel, int heightInPixel)
widthInPixel
- heightInPixel
- Vector getBoundingBoxMax()
generateHeightfieldImage(int, int)
.Vector getBoundingBoxMin()
generateHeightfieldImage(int, int)
.double getHeight(Vector position)
position
- a set of global coordinatesjava.awt.Color getHeightfieldImageBorderColor()
Vector getHeightGradient(Vector position)
double getLapProgress(Vector position)
position
- [m]; global axes and coordsVector getStartAndFinishLineBegin()
Vector getStartAndFinishLineEnd()
Vector getTrackPositionAt(double trackPctRelative)
trackPctRelative
- - relative track progress [0;1[