Skip to main content

Mojo struct

Interpolator

struct Interpolator[mode: InterpolationMode]

Fields​

  • ​cubic_coeff (Float32):

Implemented traits​

AnyType, Copyable, Defaultable, ImplicitlyCopyable, ImplicitlyDestructible, Movable, RegisterPassable, TrivialRegisterPassable

Methods​

__init__​

__init__(cubic_coeff: Float32) -> Self

__init__() -> Self

filter_length​

static filter_length() -> Int

Returns:

Int

filter​

filter(self, x: Float32) -> Float32

Returns:

Float32