and then calculating cos/tan from sin by offset.
and then calculating cos/tan from sin by offset.