Skip to content
This repository has been archived by the owner on Jul 8, 2022. It is now read-only.

Commit

Permalink
Need to make RastScale constants public since they are used on KorIM too
Browse files Browse the repository at this point in the history
  • Loading branch information
soywiz committed Jul 8, 2020
1 parent 108f3ff commit 2d38066
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ import com.soywiz.korma.segment.*
@KormaExperimental
open class RastScale {
companion object {
//internal const val RAST_FIXED_SCALE = 32 // Important NOTE: Power of two so divisions are >> and remaining &
internal const val RAST_FIXED_SCALE = 20
//internal const val RAST_FIXED_SCALE_HALF = (RAST_FIXED_SCALE / 2) - 1
//internal const val RAST_FIXED_SCALE_HALF = (RAST_FIXED_SCALE / 2)
internal const val RAST_FIXED_SCALE_HALF = 0

internal const val RAST_SMALL_BUCKET_SIZE = 4 * RAST_FIXED_SCALE
internal const val RAST_MEDIUM_BUCKET_SIZE = 16 * RAST_FIXED_SCALE
internal const val RAST_BIG_BUCKET_SIZE = 64 * RAST_FIXED_SCALE
//const val RAST_FIXED_SCALE = 32 // Important NOTE: Power of two so divisions are >> and remaining &
const val RAST_FIXED_SCALE = 20
//const val RAST_FIXED_SCALE_HALF = (RAST_FIXED_SCALE / 2) - 1
//const val RAST_FIXED_SCALE_HALF = (RAST_FIXED_SCALE / 2)
const val RAST_FIXED_SCALE_HALF = 0

const val RAST_SMALL_BUCKET_SIZE = 4 * RAST_FIXED_SCALE
const val RAST_MEDIUM_BUCKET_SIZE = 16 * RAST_FIXED_SCALE
const val RAST_BIG_BUCKET_SIZE = 64 * RAST_FIXED_SCALE
}

val sscale get() = RAST_FIXED_SCALE
Expand Down

0 comments on commit 2d38066

Please sign in to comment.