Package-level declarations

Types

Link copied to clipboard
data class Location(val x: Double = 0.0, val y: Double = 0.0, val z: Double = 0.0)

A location in 3D space

Link copied to clipboard
data class PixelLocation(val index: Int, val location: Location)
Link copied to clipboard
class PixelLocationManager(ledLocations: List<Location>?, val numLEDs: Int)

Functions

Link copied to clipboard
fun AnimationManager.groupGroupsOfPixelsAlongLine(line: Equation, rotation: RadiansRotation, offset: AbsoluteDistance, influenceDistance: Double, movementPerIteration: Double, groupSpacing: Double): PixelModificationLists

Group pixels into groups spaced apart by groupSpacing based on their location along the X axis and distance from a line after an offset and a rotation are performed

Link copied to clipboard
fun AnimationManager.groupPixelsAlongLine(line: Equation, rotation: RadiansRotation, offset: AbsoluteDistance, influenceDistance: Double, movementPerIteration: Double): PixelModificationLists

Group pixels based on their location along the X axis and distance from a line after an offset and a rotation are performed

Link copied to clipboard
fun AnimationManager.groupPixelsByDistance(center: Location, maximumDistance: AbsoluteDistance, movementPerIteration: Double): PixelModificationLists

Group pixels based on their distance from a central point.

Link copied to clipboard

Group pixels based on their location along the X axis after a transformation is performed.

Link copied to clipboard
Link copied to clipboard

Transform a location of a pixel with an offset and rotation around axes.

Link copied to clipboard
Link copied to clipboard

Rotate a point around the X axis by rotation radians using the matrix | 1 0 0 | | 0 cos(xRotation) -sin(xRotation) | | 0 sin(xRotation) cos(xRotation) |

Link copied to clipboard

Rotate a point around the Y axis by rotation radians using the matrix | cos(yRotation) 0 sin(xRotation) | | 0 1 0 | | -sin(xRotation) 0 cos(xRotation) |

Link copied to clipboard

Rotate a point around the Z axis by rotation radians using the matrix | cos(zRotation) -sin(zRotation) 0 | | sin(zRotation) cos(zRotation) 0 | | 0 0 1 |