ArrayLongSwap

data class ArrayLongSwap(arrayIdent: String, indices: Pair<Int, Int>, elem1: String, elem2: String, animations: String, runtime: Double, render: Boolean) : ManimInstr

1D array long swap

Constructors

ArrayLongSwap
Link copied to clipboard
fun ArrayLongSwap(arrayIdent: String, indices: Pair<Int, Int>, elem1: String, elem2: String, animations: String, runtime: Double, render: Boolean)
Create empty Array long swap

Functions

component1
Link copied to clipboard
operator fun component1(): String
component2
Link copied to clipboard
operator fun component2(): Pair<Int, Int>
component3
Link copied to clipboard
operator fun component3(): String
component4
Link copied to clipboard
operator fun component4(): String
component5
Link copied to clipboard
operator fun component5(): String
component6
Link copied to clipboard
operator fun component6(): Double
component7
Link copied to clipboard
operator fun component7(): Boolean
copy
Link copied to clipboard
fun copy(arrayIdent: String, indices: Pair<Int, Int>, elem1: String, elem2: String, animations: String, runtime: Double, render: Boolean): ArrayLongSwap
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getInstructionString
Link copied to clipboard
fun getInstructionString(instruction: String, spread: Boolean): String
Get instruction string to be played using Manim
getRuntimeString
Link copied to clipboard
fun getRuntimeString(): String
Get runtime string using runtime provided
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toPython
Link copied to clipboard
open override fun toPython(): List<String>
Function for converting linear representation instruction to its corresponding Python instructions
toString
Link copied to clipboard
open override fun toString(): String

Properties

animations
Link copied to clipboard
val animations: String
arrayIdent
Link copied to clipboard
val arrayIdent: String
elem1
Link copied to clipboard
val elem1: String
elem2
Link copied to clipboard
val elem2: String
indices
Link copied to clipboard
val indices: Pair<Int, Int>
render
Link copied to clipboard
open override val render: Boolean
runtime
Link copied to clipboard
open override val runtime: Double