                 }
                 if x < a {
                     let _x = Double.pi * x
-                    return a * Double.sin(_x) * Double.sin(_x / a) / (_x * _x)
+                    return a * sin(_x) * sin(_x / a) / (_x * _x)
                 }
                 return 0
             }

            let s_height = buffer.count / s_width
            let _transform = transform.inverse
            
            for i in 0..<result.count {
                result[i] = algorithm.calculate(source: buffer, width: s_width, height: s_height, point: Point(x: i % width, y: i / width) * _transform)
            }
        }
        return ImageBase(buffer: result, colorSpace: self.colorSpace, algorithm: self.algorithm)


extension Image.ResamplingAlgorithm {
    
    func calculate<ColorPixel: ColorPixelProtocol>(source: UnsafePointer<ColorPixel>, width: Int, height: Int, point: Point) -> ColorPixel where ColorPixel.Model : ColorBlendProtocol {
        switch self {
        case .none:
            
