Tachyon (current)  Current Main Branch
Macros | Functions
coordsys.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "tachyon.h"
#include "coordsys.h"

Go to the source code of this file.

Macros

#define TACHYON_INTERNAL   1
 

Functions

void xytopolar (flt x, flt y, flt rad, flt *u, flt *v)
 
void xyztocyl (vector pnt, flt height, flt *u, flt *v)
 
void xyztospr (vector pnt, flt *u, flt *v)
 

Macro Definition Documentation

◆ TACHYON_INTERNAL

#define TACHYON_INTERNAL   1

Definition at line 16 of file coordsys.c.

Function Documentation

◆ xytopolar()

void xytopolar ( flt  x,
flt  y,
flt  rad,
flt u,
flt v 
)

Definition at line 20 of file coordsys.c.

References ACOS, and SQRT.

◆ xyztocyl()

void xyztocyl ( vector  pnt,
flt  height,
flt u,
flt v 
)

Definition at line 30 of file coordsys.c.

References ACOS, and SQRT.

Referenced by cyl_checker_texture(), and image_cyl_texture().

◆ xyztospr()

void xyztospr ( vector  pnt,
flt u,
flt v 
)

Definition at line 42 of file coordsys.c.

References ACOS, SIN, and SQRT.

Referenced by image_sphere_texture().