Uses of Interface
de.extio.spacecraft.shared.model.world.CoordD2
-
Packages that use CoordD2 Package Description de.extio.spacecraft.shared.bo Business objects implement various game mechanicsde.extio.spacecraft.shared.client.ui Utilities for the client UIde.extio.spacecraft.shared.model.entity Business and data objects for the entity subsystem.de.extio.spacecraft.shared.model.entity.builtin.composite Builtin composite entity implementations and interfaces for custom implementationsde.extio.spacecraft.shared.model.entity.builtin.live Builtin live entity implementations and interfaces for custom implementations of specific entity typesde.extio.spacecraft.shared.model.world Data objects representing the game worldde.extio.spacecraft.shared.world Algorithmic implementations and utilities for the game world subsystem -
-
Uses of CoordD2 in de.extio.spacecraft.shared.bo
Methods in de.extio.spacecraft.shared.bo that return CoordD2 Modifier and Type Method Description CoordD2
EnvironmentGenerator. calcVDirectionNormByGameSessionId()
Returns a normal direction vector.Methods in de.extio.spacecraft.shared.bo with parameters of type CoordD2 Modifier and Type Method Description List<SpaceObject>
EnvironmentGenerator. placeAsteroidBelt(int sizeMin, int sizeMax, double density, double velocityMin, double velocityMax, CoordD2 vDirectionNorm, Area2 area, WorldManager worldManager, BiPredicate<MutableCoordI2,CoordI2> randomPositionPredicate)
Generates and places a whole belt of asteroidsLootContainer
LootScatterer. scatter(int entityDefIdx, CoordI2 worldPos, int radius, double healthPerc, CoordD2 baseVelocityVector, Edge2 orientation, UUID droppedBy, GameSession gameSession)
Use this method to drop loot (e.g. -
Uses of CoordD2 in de.extio.spacecraft.shared.client.ui
Fields in de.extio.spacecraft.shared.client.ui declared as CoordD2 Modifier and Type Field Description protected CoordD2
Window. relativeScreenPosition
-
Uses of CoordD2 in de.extio.spacecraft.shared.model.entity
Fields in de.extio.spacecraft.shared.model.entity declared as CoordD2 Modifier and Type Field Description protected CoordD2
AbstractCompositeEntity. accelerationVector
CoordD2
AbstractCompositeEntity.CollisionCalculationResult. p0
Acceleration vector affecting this compositeCoordD2
AbstractCompositeEntity.CollisionCalculationResult. p1
Acceleration vector affecting the other compositeprotected CoordD2
AbstractCompositeEntity. precisePosition
protected CoordD2
AbstractCompositeEntity. prevVelocityVector
protected CoordD2
AbstractCompositeEntity. velocityVector
Methods in de.extio.spacecraft.shared.model.entity that return CoordD2 Modifier and Type Method Description CoordD2
AbstractCompositeEntity. getAccelerationVector()
CoordD2
AbstractCompositeEntity. getAnimationOffset()
CoordD2
AbstractCompositeEntity. getPrecisePosition()
CoordD2
AbstractCompositeEntity. getVelocityVector()
Methods in de.extio.spacecraft.shared.model.entity with parameters of type CoordD2 Modifier and Type Method Description void
AbstractCompositeEntity. accelerate(CoordD2 a)
Accelerates composite entity.protected void
AbstractCompositeEntity. handleMoveApply(GameSession gameSession, CoordD2 newPositionPrecise)
Applies a new spatial position on this composite entityvoid
AbstractCompositeEntity. setAccelerationVector(CoordD2 accelerationVector)
void
AbstractCompositeEntity. setPrecisePosition(CoordD2 precisePosition)
void
AbstractCompositeEntity. setVelocityVector(CoordD2 velocityVector)
-
Uses of CoordD2 in de.extio.spacecraft.shared.model.entity.builtin.composite
Methods in de.extio.spacecraft.shared.model.entity.builtin.composite with parameters of type CoordD2 Modifier and Type Method Description void
InfoCompositeEntity. accelerate(CoordD2 a)
-
Uses of CoordD2 in de.extio.spacecraft.shared.model.entity.builtin.live
Methods in de.extio.spacecraft.shared.model.entity.builtin.live that return CoordD2 Modifier and Type Method Description CoordD2
EngineEntity. getvAccel()
CoordD2
EngineEntity. getvAuto()
CoordD2
EngineEntity. getvSelected()
Methods in de.extio.spacecraft.shared.model.entity.builtin.live with parameters of type CoordD2 Modifier and Type Method Description boolean
EngineEntity. checkEngineCone(EntityDefManager entityDefManager, CoordD2 v)
void
EngineEntity. commandAuto(CoordD2 vMove, double autoSpeed, boolean autoRotate)
void
EngineEntity. commandManual(CoordD2 vThrust, double throttle)
-
Uses of CoordD2 in de.extio.spacecraft.shared.model.world
Classes in de.extio.spacecraft.shared.model.world that implement CoordD2 Modifier and Type Class Description class
ImmutableCoordD2
Immutable implementation of CoordD2class
MutableCoordD2
Immutable implementation of CoordD2Methods in de.extio.spacecraft.shared.model.world that return CoordD2 Modifier and Type Method Description CoordD2
CoordD2. add(double n)
CoordD2
CoordD2. add(double dx, double dy)
CoordD2
CoordD2. add(CoordD2 delta)
CoordD2
CoordD2. divide(double n)
CoordD2
CoordD2. divide(double dx, double dy)
CoordD2
CoordD2. divide(CoordD2 delta)
CoordD2
ImmutableCoordD2. divide(double n)
CoordD2
MutableCoordD2. divide(double n)
CoordD2
CoordD2. multiply(double n)
CoordD2
CoordD2. multiply(double dx, double dy)
CoordD2
CoordD2. multiply(CoordD2 delta)
CoordD2
ImmutableCoordD2. multiply(double n)
CoordD2
MutableCoordD2. multiply(double n)
CoordD2
CoordD2. setXY(double x, double y)
CoordD2
CoordD2. setXY(CoordD2 other)
CoordD2
CoordD2. substract(double n)
CoordD2
CoordD2. substract(double dx, double dy)
CoordD2
CoordD2. substract(CoordD2 delta)
default CoordD2
Coord2Conversion. toImmutableCoordD2()
default CoordD2
Coord2Conversion. toMutableCoordD2()
static CoordD2
Edge2. toVectorD(Edge2 edge2)
Returns a vector with length 1 pointing to the direction edge2 representatesdefault CoordD2
Coord2Conversion. toVNorm()
Converts a vector to a unit normal vectorMethods in de.extio.spacecraft.shared.model.world with parameters of type CoordD2 Modifier and Type Method Description CoordD2
CoordD2. add(CoordD2 delta)
ImmutableCoordD2
ImmutableCoordD2. add(CoordD2 delta)
MutableCoordD2
MutableCoordD2. add(CoordD2 delta)
default int
CoordD2. compareTo(CoordD2 other)
static ImmutableCoordD2
ImmutableCoordD2. create(CoordD2 other)
static ImmutableCoordI2
ImmutableCoordI2. create(CoordD2 other)
static MutableCoordD2
MutableCoordD2. create(CoordD2 other)
static MutableCoordI2
MutableCoordI2. create(CoordD2 other)
CoordD2
CoordD2. divide(CoordD2 delta)
ImmutableCoordD2
ImmutableCoordD2. divide(CoordD2 delta)
MutableCoordD2
MutableCoordD2. divide(CoordD2 delta)
CoordD2
CoordD2. multiply(CoordD2 delta)
ImmutableCoordD2
ImmutableCoordD2. multiply(CoordD2 delta)
MutableCoordD2
MutableCoordD2. multiply(CoordD2 delta)
CoordD2
CoordD2. setXY(CoordD2 other)
ImmutableCoordD2
ImmutableCoordD2. setXY(CoordD2 other)
MutableCoordD2
MutableCoordD2. setXY(CoordD2 other)
CoordD2
CoordD2. substract(CoordD2 delta)
ImmutableCoordD2
ImmutableCoordD2. substract(CoordD2 delta)
MutableCoordD2
MutableCoordD2. substract(CoordD2 delta)
-
Uses of CoordD2 in de.extio.spacecraft.shared.world
Methods in de.extio.spacecraft.shared.world that return CoordD2 Modifier and Type Method Description static CoordD2
WorldUtils. getPedal(CoordI2 a, CoordI2 b, CoordI2 c)
Calculates the pedal of altitude c of triangle A.B,Cstatic CoordD2
WorldUtils. getPedalOnLineSegmentAB(CoordI2 a, CoordI2 b, CoordI2 c)
Get's the pedal of altitude c of triangle A.B,C or the closest point on line segment a,bstatic CoordD2
WorldUtils. rotateVector(CoordD2 v, double θ)
Rotates a vectorMethods in de.extio.spacecraft.shared.world with parameters of type CoordD2 Modifier and Type Method Description static List<CoordI2>
WorldUtils. evade(HasPositionAndDimension2 origin, double velOrigin, CoordD2 vOrigin, HasPositionAndDimension2 target, CoordD2 vTarget, CoordI2 oTarget, CoordI2 pInterception_)
Calculates waypoints to evade a collision between origin and target.static double
WorldUtils. getDistance(CoordD2 v)
The Pythagorean theoremstatic double
WorldUtils. getDistance(CoordD2 c0, CoordD2 c1)
The Pythagorean theoremstatic double
WorldUtils. getVectorAngle(CoordD2 v)
Calculate the direction of a vectorstatic double
WorldUtils. getVectorAngle(CoordD2 v0, CoordD2 v1)
Calculate the angle between 2 vectorsstatic double
WorldUtils. getVectorDotProduct(CoordD2 v0, CoordD2 v1)
Calculate the dot productstatic CoordI2
WorldUtils. intercept(CoordI2 pOrigin_, double velOrigin, CoordI2 pTarget_, CoordD2 vTarget_)
Calculates the point of intersection to intercept target from origin with velocity velOriginstatic CoordD2
WorldUtils. rotateVector(CoordD2 v, double θ)
Rotates a vector
-