Class BoundingBox
java.lang.Object
com.fs.starfarer.api.impl.campaign.velfield.BoundingBox
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected float
protected List<org.lwjgl.util.vector.Vector2f>
protected boolean
protected org.lwjgl.util.vector.Vector2f
protected List<org.lwjgl.util.vector.Vector2f>
protected float
protected List<org.lwjgl.util.vector.Vector2f>
protected float
protected float[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
computeConvexHull
(List<org.lwjgl.util.vector.Vector2f> points) static BoundingBox
create
(List<SlipstreamTerrainPlugin2.SlipstreamSegment> segments) static float[]
getBoundingBox
(List<org.lwjgl.util.vector.Vector2f> points) static float
getTurnDir
(org.lwjgl.util.vector.Vector2f p1, org.lwjgl.util.vector.Vector2f p2, org.lwjgl.util.vector.Vector2f p3) boolean
pointNeedsDetailedCheck
(org.lwjgl.util.vector.Vector2f p) boolean
pointNeedsDetailedCheck
(org.lwjgl.util.vector.Vector2f p, float extraRange) void
renderDebug
(float alpha) static List<org.lwjgl.util.vector.Vector2f>
-
Field Details
-
points
-
convexHull
-
box
-
padding
protected float padding -
rotatedBox
protected float[] rotatedBox -
angle
protected float angle -
boxComputed
protected boolean boxComputed -
center
protected org.lwjgl.util.vector.Vector2f center -
radius
protected float radius
-
-
Constructor Details
-
BoundingBox
public BoundingBox(float padding)
-
-
Method Details
-
create
-
pointNeedsDetailedCheck
public boolean pointNeedsDetailedCheck(org.lwjgl.util.vector.Vector2f p) -
pointNeedsDetailedCheck
public boolean pointNeedsDetailedCheck(org.lwjgl.util.vector.Vector2f p, float extraRange) -
compute
-
computeCenterAndRadius
public void computeCenterAndRadius() -
computeBox
public void computeBox() -
rotate
-
getBoundingBox
-
computeConvexHull
-
getTurnDir
public static float getTurnDir(org.lwjgl.util.vector.Vector2f p1, org.lwjgl.util.vector.Vector2f p2, org.lwjgl.util.vector.Vector2f p3) -
renderDebug
public void renderDebug(float alpha)
-