---
name: "im_costra"
section: "3"
platform: "linux"
package: "libvips-dev"
version: "7.20.7-1+b3"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/im_costra"
---

# im\_costra(3)

basic trig functions

## NAME

im\_costra, im\_sintra, im\_tantra, im\_acostra, im\_asintra, im\_atantra - basic trig functions

## SYNOPSIS

\#include \<vips/vips.h\>

int im\_costra(in, out)\
 IMAGE \*in, \*out;

int im\_sintra(in, out)\
 IMAGE \*in, \*out;

int im\_tantra(in, out)\
 IMAGE \*in, \*out;

int im\_acostra(in, out)\
 IMAGE \*in, \*out;

int im\_asintra(in, out)\
 IMAGE \*in, \*out;

int im\_atantra(in, out)\
 IMAGE \*in, \*out;

## DESCRIPTION

Basic trig functions. The input image is mapped through either [cos(3)](/cos/3.md), [sin(3)](/sin/3.md) or [tan(3)](/tan/3.md) and written to out. All work in degrees.

The size and number of bands are unchanged, the output type is float, unless the input is double, in which case the output is double.  Non-complex images only!

## RETURN VALUE

Each function returns 0 on success and -1 on error.

## SEE ALSO

[im\_add(3)](/im_add/3.md), [im\_lintra(3)](/im_lintra/3.md), [im\_abs(3)](/im_abs/3.md), im\_mean(3), [im\_logtra(3)](/im_logtra/3.md)

## COPYRIGHT

National Gallery, 1995.

## AUTHOR

J. Cupitt - 21/7/93
