SnappingHelper
class SnappingHelper(snapRangeInDP: Float, snapPaddingInPercentageLeft: Float, snapPaddingInPercentageTop: Float, snapPaddingInPercentageRight: Float, snapPaddingInPercentageBottom: Float, snapToHorizontalCenter: Boolean, snapToVerticalCenter: Boolean, rotationSnapPoints: FloatArray)
Content copied to clipboard
Functions
drawSnappingGuides
Link copied to clipboard
fun drawSnappingGuides(canvas: <ERROR CLASS>, spriteVector: <ERROR CLASS>, spriteRect: <ERROR CLASS>, spriteRectBounds: <ERROR CLASS>, visibleArea: <ERROR CLASS>)
Content copied to clipboard
equals
Link copied to clipboard
getSnapPointsX
Link copied to clipboard
fun getSnapPointsX(area: <ERROR CLASS>, spriteRect: <ERROR CLASS>): FloatArray
Content copied to clipboard
getSnapPointsY
Link copied to clipboard
fun getSnapPointsY(area: <ERROR CLASS>, spriteRect: <ERROR CLASS>): FloatArray
Content copied to clipboard
mapRotationFromSnapSystem
Link copied to clipboard
fun mapRotationFromSnapSystem(rotation: Float, pointDistance: Float, keepState: Boolean): Float
Content copied to clipboard
mapRotationToSnapSystem
Link copied to clipboard
fun mapRotationToSnapSystem(rotation: Float, pointDistance: Float): Float
Content copied to clipboard
mapXFromSnapSystem
Link copied to clipboard
fun mapXFromSnapSystem(x: Float, area: <ERROR CLASS>, spriteRect: <ERROR CLASS>): Float
Content copied to clipboard
mapXToSnapSystem
Link copied to clipboard
fun mapXToSnapSystem(x: Float, area: <ERROR CLASS>, spriteRect: <ERROR CLASS>): Float
Content copied to clipboard
mapYFromSnapSystem
Link copied to clipboard
fun mapYFromSnapSystem(y: Float, area: <ERROR CLASS>, spriteRect: <ERROR CLASS>): Float
Content copied to clipboard
mapYToSnapSystem
Link copied to clipboard
fun mapYToSnapSystem(y: Float, area: <ERROR CLASS>, spriteRect: <ERROR CLASS>): Float
Content copied to clipboard
Properties
appliedOffsetX
Link copied to clipboard
appliedOffsetY
Link copied to clipboard
isSnappedAtRotation
Link copied to clipboard
isSnappedAtX
Link copied to clipboard
isSnappedAtY
Link copied to clipboard