Package arc.math.geom

Interface Position

All Known Subinterfaces:
Payload, mindustry.gen.Posc, Ranged, Sized, mindustry.gen.Teamc
All Known Implementing Classes:
Accelerator.AcceleratorBuild, ArmoredConduit.ArmoredConduitBuild, ArmoredConveyor.ArmoredConveyorBuild, AttributeCrafter.AttributeCrafterBuild, AutoDoor.AutoDoorBuild, BaseShield.BaseShieldBuild, BaseTurret.BaseTurretBuild, Battery.BatteryBuild, BeamDrill.BeamDrillBuild, BeamNode.BeamNodeBuild, BlockProducer.BlockProducerBuild, BufferedItemBridge.BufferedItemBridgeBuild, mindustry.gen.Building, BuildPayload, BuildPlan, BuildTurret.BuildTurretBuild, BurstDrill.BurstDrillBuild, CachedTile, CanvasBlock.CanvasBuild, Conduit.ConduitBuild, ConstructBlock.ConstructBuild, Constructor.ConstructorBuild, ConsumeGenerator.ConsumeGeneratorBuild, ContinuousLiquidTurret.ContinuousLiquidTurretBuild, ContinuousTurret.ContinuousTurretBuild, Conveyor.ConveyorBuild, CoreBlock.CoreBuild, DirectionalForceProjector.DirectionalForceProjectorBuild, DirectionalUnloader.DirectionalUnloaderBuild, DirectionBridge.DirectionBridgeBuild, DirectionLiquidBridge.DuctBridgeBuild, Door.DoorBuild, Drill.DrillBuild, DroneCenter.DroneCenterBuild, Duct.DuctBuild, DuctBridge.DuctBridgeBuild, DuctRouter.DuctRouterBuild, EditorTile, ForceProjector.ForceBuild, Fracker.FrackerBuild, GenericCrafter.GenericCrafterBuild, HeatConductor.HeatConductorBuild, HeatCrafter.HeatCrafterBuild, HeaterGenerator.HeaterGeneratorBuild, HeatProducer.HeatProducerBuild, ImpactReactor.ImpactReactorBuild, Incinerator.IncineratorBuild, ItemBridge.ItemBridgeBuild, ItemIncinerator.ItemIncineratorBuild, ItemSource.ItemSourceBuild, ItemTurret.ItemTurretBuild, ItemVoid.ItemVoidBuild, Junction.JunctionBuild, LaserTurret.LaserTurretBuild, LaunchPad.LaunchPadBuild, LegacyCommandCenter.CommandBuild, LegacyMechPad.LegacyMechPadBuild, LegacyUnitFactory.LegacyUnitFactoryBuild, LightBlock.LightBuild, LiquidBlock.LiquidBuild, LiquidBridge.LiquidBridgeBuild, LiquidJunction.LiquidJunctionBuild, LiquidRouter.LiquidRouterBuild, LiquidSource.LiquidSourceBuild, LiquidTurret.LiquidTurretBuild, LiquidVoid.LiquidVoidBuild, LogicBlock.LogicBuild, LogicDisplay.LogicDisplayBuild, LongPowerNode.LongPowerNodeBuild, MassDriver.MassDriverBuild, MemoryBlock.MemoryBuild, MendProjector.MendBuild, MessageBlock.MessageBuild, NuclearReactor.NuclearReactorBuild, OverdriveProjector.OverdriveBuild, OverflowDuct.OverflowDuctBuild, OverflowGate.OverflowGateBuild, PayloadAmmoTurret.PayloadTurretBuild, PayloadBlock.PayloadBlockBuild, PayloadConveyor.PayloadConveyorBuild, PayloadDeconstructor.PayloadDeconstructorBuild, PayloadLoader.PayloadLoaderBuild, PayloadMassDriver.PayloadDriverBuild, PayloadRouter.PayloadRouterBuild, PayloadSource.PayloadSourceBuild, PayloadUnloader.PayloadUnloaderBuild, PayloadVoid.PayloadVoidBuild, PointDefenseTurret.PointDefenseBuild, PowerDiode.PowerDiodeBuild, PowerGenerator.GeneratorBuild, PowerNode.PowerNodeBuild, PowerSource.PowerSourceBuild, PowerTurret.PowerTurretBuild, Pump.PumpBuild, Radar.RadarBuild, Reconstructor.ReconstructorBuild, RegenProjector.RegenProjectorBuild, ReloadTurret.ReloadTurretBuild, RepairTower.RepairTowerBuild, RepairTurret.RepairPointBuild, Router.RouterBuild, Separator.SeparatorBuild, ShieldWall.ShieldWallBuild, ShockMine.ShockMineBuild, ShockwaveTower.ShockwaveTowerBuild, SingleBlockProducer.SingleBlockProducerBuild, SolarGenerator.SolarGeneratorBuild, SolidPump.SolidPumpBuild, Sorter.SorterBuild, StackConveyor.StackConveyorBuild, StackRouter.StackRouterBuild, StorageBlock.StorageBuild, SwitchBlock.SwitchBuild, ThermalGenerator.ThermalGeneratorBuild, Thruster.ThrusterBuild, Tile, TractorBeamTurret.TractorBeamBuild, Turret.TurretBuild, UnitAssembler.UnitAssemblerBuild, UnitAssemblerModule.UnitAssemblerModuleBuild, UnitBlock.UnitBuild, UnitCargoLoader.UnitTransportSourceBuild, UnitCargoUnloadPoint.UnitCargoUnloadPointBuild, UnitFactory.UnitFactoryBuild, UnitPayload, Unloader.UnloaderBuild, VariableReactor.VariableReactorBuild, Vec2, Wall.WallBuild, WallCrafter.WallCrafterBuild, WorldLabelComp

public interface Position
Represents a point in 2-D space.
  • Method Summary

    Modifier and Type
    Method
    Description
    default float
    angleTo(float x, float y)
     
    default float
     
    default float
    dst(float x, float y)
     
    default float
    dst(Position other)
     
    default float
    dst2(float x, float y)
     
    default float
    dst2(Position other)
     
    float
     
    float
     
    default boolean
    within(float x, float y, float dst)
     
    default boolean
    within(Position other, float dst)
     
  • Method Details

    • getX

      float getX()
    • getY

      float getY()
    • angleTo

      default float angleTo(Position other)
    • angleTo

      default float angleTo(float x, float y)
    • dst2

      default float dst2(Position other)
    • dst

      default float dst(Position other)
    • dst

      default float dst(float x, float y)
    • dst2

      default float dst2(float x, float y)
    • within

      default boolean within(Position other, float dst)
    • within

      default boolean within(float x, float y, float dst)