To2D

final case class To2D(n: I, pos: I) extends MultiOut[Int]

Decodes one dimensional indices or positions of a Hilbert curve to two dimensional coordinates.

The output coordinates are integers between zero (inclusive) and n (exclusive). The UGen ends when pos ends.

Value parameters:
n

the square matrix size, which must be a power of two

pos

the integer position on the hilbert curve from zero (inclusive) to n-times-n (exclusive).

Companion:
object
trait Serializable
trait MultiOut[Int]
trait Lazy[Int]
trait GE[Int]
trait UGenSource[UGenInLike[Int], IndexedSeq[StreamOut]]
trait Expander[UGenInLike[Int]]
trait Lazy
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

override def productPrefix: String
Definition Classes
Product
def x: I
def y: I

Inherited methods

final def name: String
Inherited from:
UGenSource
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product