Class CachedSineCosine_F32

java.lang.Object
boofcv.struct.feature.CachedSineCosine_F32

public class CachedSineCosine_F32 extends Object
Precomputes the output of sine/cosine operations. Given an angle it will return an approximation much faster than computing it from scratch.
  • Field Details

    • c

      public float[] c
    • s

      public float[] s
  • Constructor Details

    • CachedSineCosine_F32

      public CachedSineCosine_F32(float minAngle, float maxAngle, int size)
  • Method Details

    • cosine

      public float cosine(float value)
    • sine

      public float sine(float value)
    • computeIndex

      public int computeIndex(float angle)