struct Phase::ReadonlyView::RegionTransform

Defined in:

view_util/transforms.cr

Constructors

Instance Method Summary

Instance methods inherited from struct Phase::ReadonlyView::CoordTransform

apply(coord : InputCoord(Int32)) : ReadonlyWrapper(OutputCoord(Int32), Int32) apply, commutes_with?(t : CoordTransform) : Bool commutes_with?, compose(t : CoordTransform) : CoordTransform compose, initialize initialize

Constructor methods inherited from struct Phase::ReadonlyView::CoordTransform

new new

Constructor Detail

def self.new(region : Phase::IndexRegion(Int32)) #

[View source]

Instance Method Detail

def apply(coord : InputCoord(Int32)) : ReadonlyWrapper(OutputCoord(Int32), Int32) #
Description copied from struct Phase::ReadonlyView::CoordTransform

must not mutate coord


[View source]
def compose(t : CoordTransform) : CoordTransform #

TODO check reaaaaally carefully


[View source]
def region : IndexRegion(Int32) #

each of these has size = dimensions

TODO Try to make this accept a generic coordinate type


[View source]