hc_offset-HilbertCurve-method: Adjust positions

hc_offset-HilbertCurve-methodR Documentation

Adjust positions

Description

Adjust positions

Usage

## S4 method for signature 'HilbertCurve'
hc_offset(object, x)

Arguments

object

A HilbertCurve-class object.

x

positions.

Details

Since internally positions are transformed to positive integers, if input positions are specified as negative values when initializing the Hilbert curve, a shift will be recorded internally and positions are transformed to positive value automatically.

Value

A positive numeric value.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

Examples

hc = HilbertCurve(-100, 100)
hc_offset(hc, c(-100, -50, 0, 50, 100))

jokergoo/HilbertCurve documentation built on Oct. 11, 2024, 11:18 a.m.