Skip to content

Explain your code. #1

@evgenybozhko2

Description

@evgenybozhko2

What is this vars means ?

    private var isLessType = false
    private var smallDistance = 0
    private var mediumDistance = 0
    private var bigDistance = 0

What is this the logic ?

` private fun getSmallDistanceRatio(): Float {
        return if (isLessType) {
            25f
        } else {
            100f //stack begin
        }
    }

    private fun getMediumDistanceRatio(): Float {
        return if (isLessType) {
            6f
        } else {
            3f // stack size scale
        }
    }

    private fun getBigDistanceRatio(): Float {
        return if (isLessType) {
            2f
        } else {
            1f // stack end
        }
    }
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions