Space
object Space
Module that contains the space-related concepts.
Type members
Classlikes
Model a Point in a 2D Space.
Model a Point in a 2D Space.
- Value parameters:
- x
the x coordinate
- y
the Y coordinate
- Companion:
- object
Extensions
Extensions
extension (p: Point2D)
@targetName("product")
Product operator.
Product operator.
- Value parameters:
- other
the other point involved in the operation
- Returns:
the multiplication of the two points.
@targetName("plus")
Plus operator.
Plus operator.
- Value parameters:
- other
the other point to sum with
- Returns:
the sum of the two points.
@targetName("minus")
Minus operator.
Minus operator.
- Value parameters:
- other
the other point involved in the operation
- Returns:
the difference of the two points