Package boofcv.struct.feature
Class CachedSineCosine_F32
java.lang.Object
boofcv.struct.feature.CachedSineCosine_F32
Precomputes the output of sine/cosine operations. Given an angle it will
return an approximation much faster than computing it from scratch.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
computeIndex
(float angle) float
cosine
(float value) float
sine
(float value)
-
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)
-