Package gaia.cu9.ari.gaiaorbit.util.gdx
Class RingCreator
- java.lang.Object
-
- gaia.cu9.ari.gaiaorbit.util.gdx.ModelCreator
-
- gaia.cu9.ari.gaiaorbit.util.gdx.RingCreator
-
public class RingCreator extends ModelCreator
Helper generic class to create rings.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gaia.cu9.ari.gaiaorbit.util.gdx.ModelCreator
ModelCreator.Face, ModelCreator.IFace
-
-
Field Summary
-
Fields inherited from class gaia.cu9.ari.gaiaorbit.util.gdx.ModelCreator
faces, flipNormals, hardEdges, index, name, normals, uv, vertices
-
-
Constructor Summary
Constructors Constructor Description RingCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addNormals()
protected void
addUV(com.badlogic.gdx.math.Vector3 p, float angle)
protected int
addVertex(com.badlogic.gdx.math.Vector3 p, float angle)
RingCreator
create(int divisions, float innerRadius, float outerRadius, boolean flipNormals)
Creates a new ring with the given parameters.RingCreator
create(int divisions, float innerRadius, float outerRadius, boolean flipNormals, float startAngle, float endAngle)
Creates a new ring with the given parameters-
Methods inherited from class gaia.cu9.ari.gaiaorbit.util.gdx.ModelCreator
addFace, dumpObj, flip
-
-
-
-
Method Detail
-
create
public RingCreator create(int divisions, float innerRadius, float outerRadius, boolean flipNormals)
Creates a new ring with the given parameters.- Parameters:
innerRadius
- The inner radius length.outerRadius
- The outer radius length.flipNormals
- Whether to flip normals or not.- Returns:
- This ring creator, for chaining
-
create
public RingCreator create(int divisions, float innerRadius, float outerRadius, boolean flipNormals, float startAngle, float endAngle)
Creates a new ring with the given parameters- Parameters:
innerRadius
- The inner radius lengthouterRadius
- The outer radius lengthflipNormals
- Whether to flip normals or not- Returns:
- This ring creator, for chaining
-
addVertex
protected int addVertex(com.badlogic.gdx.math.Vector3 p, float angle)
-
addUV
protected void addUV(com.badlogic.gdx.math.Vector3 p, float angle)
-
addNormals
protected void addNormals()
-
-