PositionProperties

data class PositionProperties(x: Double, y: Double, width: Double, height: Double)

Position properties (to assign which area on screen an object can occupy in the final animation)

Constructors

PositionProperties
Link copied to clipboard
fun PositionProperties(x: Double, y: Double, width: Double, height: Double)
Create empty Position properties

Functions

calculateManimCoord
Link copied to clipboard
fun calculateManimCoord(): List<Pair<Double, Double>>
Calculate Manim coordinates of assigned area based on properties in constructor
component1
Link copied to clipboard
operator fun component1(): Double
component2
Link copied to clipboard
operator fun component2(): Double
component3
Link copied to clipboard
operator fun component3(): Double
component4
Link copied to clipboard
operator fun component4(): Double
copy
Link copied to clipboard
fun copy(x: Double, y: Double, width: Double, height: Double): PositionProperties
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

height
Link copied to clipboard
val height: Double
: height of assigned area
width
Link copied to clipboard
val width: Double
: width of assigned area
x
Link copied to clipboard
val x: Double
: x-coordinate of bottom-left corner
y
Link copied to clipboard
val y: Double
: y-coordinate of bottom-left corner