Package mindustry.type
Class Sector.SectorRect
java.lang.Object
mindustry.type.Sector.SectorRect
- Enclosing class:
- Sector
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSectorRect
(float radius, arc.math.geom.Vec3 center, arc.math.geom.Vec3 top, arc.math.geom.Vec3 right, float rotation) -
Method Summary
Modifier and TypeMethodDescriptionarc.math.geom.Vec3
project
(float x, float y) Project a coordinate into 3D space.
-
Field Details
-
center
public final arc.math.geom.Vec3 center -
top
public final arc.math.geom.Vec3 top -
right
public final arc.math.geom.Vec3 right -
result
public final arc.math.geom.Vec3 result -
radius
public final float radius -
rotation
public final float rotation
-
-
Constructor Details
-
SectorRect
public SectorRect(float radius, arc.math.geom.Vec3 center, arc.math.geom.Vec3 top, arc.math.geom.Vec3 right, float rotation)
-
-
Method Details
-
project
public arc.math.geom.Vec3 project(float x, float y) Project a coordinate into 3D space. Both coordinates should be normalized to floats in the range [0, 1]
-