Level of the Hilbert curve

# S4 method for HilbertCurve
hc_level(object)

Arguments

object

A HilbertCurve-class object.

Value

The level of the Hilbert curve.

Author

Zuguang Gu <z.gu@dkfz.de>

Examples

hc = HilbertCurve(1, 100)

hc_level(hc)
#> [1] 4

hc = HilbertCurve(1, 100, level = 5)

hc_level(hc)
#> [1] 5