Class Sector.SectorRect

java.lang.Object
mindustry.type.Sector.SectorRect
Enclosing class:
Sector

public static class Sector.SectorRect extends Object
  • Field Details

    • center

      public final Vec3 center
    • top

      public final Vec3 top
    • result

      public final Vec3 result
    • radius

      public final float radius
    • rotation

      public final float rotation
  • Constructor Details

    • SectorRect

      public SectorRect(float radius, Vec3 center, Vec3 top, Vec3 right, float rotation)
  • Method Details

    • project

      public Vec3 project(float x, float y)
      Project a coordinate into 3D space. Both coordinates should be normalized to floats in the range [0, 1]