Class Sector.SectorRect

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

public static class Sector.SectorRect extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final arc.math.geom.Vec3
     
    final float
     
    final arc.math.geom.Vec3
     
    final arc.math.geom.Vec3
     
    final float
     
    final arc.math.geom.Vec3
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SectorRect(float radius, arc.math.geom.Vec3 center, arc.math.geom.Vec3 top, arc.math.geom.Vec3 right, float rotation)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    arc.math.geom.Vec3
    project(float x, float y)
    Project a coordinate into 3D space.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • center

      public final arc.math.geom.Vec3 center
    • top

      public final arc.math.geom.Vec3 top
    • 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]