Euclidean2DTransformation

Defines the possible transformations for a it.unibo.alchemist.model.interfaces.geometry.GeometricShape in a bidimensional euclidean space.

Functions

Link copied to clipboard
abstract fun origin(position: Euclidean2DPosition)

open fun origin(x: Double, y: Double)

Changes origin.

Link copied to clipboard
open fun rotate(direction: Euclidean2DPosition)

Rotates toward the specified direction.

abstract fun rotate(angle: Double)

Counter clockwise rotation.