io.github.srs.model
Members list
Packages
Type members
Classlikes
Represents a generic entity in a two-dimensional space.
Represents a generic entity in a two-dimensional space.
An entity is characterized by its position, shape, and orientation.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ModelModule.type
Represents an orientation in a two-dimensional plane.
Represents an orientation in a two-dimensional plane.
The orientation is expressed in degrees but can also be converted to radians.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Companion object for Orientation, providing a factory method.
Companion object for Orientation, providing a factory method.
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Orientation.type
ShapeType represents different geometric shapes used in the simulation.
ShapeType represents different geometric shapes used in the simulation.
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Represents a static entity in a two-dimensional space.
Represents a static entity in a two-dimensional space.
A static entity is characterized by its position, orientation, and shape.
Attributes
Companion object for StaticEntity, providing factory methods for creating instances.
Companion object for StaticEntity, providing factory methods for creating instances.
Attributes
- Companion
- enum
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
StaticEntity.type
Types
Represents a point in a two-dimensional Cartesian coordinate system.
Represents a point in a two-dimensional Cartesian coordinate system.
A Point2D
is defined as a tuple of two Double
values: (x, y)
.
Attributes
Extensions
Extensions
Computes the Euclidean distance between this point and another point.
Computes the Euclidean distance between this point and another point.
The Euclidean distance is calculated as:
sqrt((x2 - x1)^2 + (y2 - y1)^2)
Value parameters
- other
-
the other point to which the distance is measured.
Attributes
- Returns
-
the Euclidean distance between this point and
other
.