aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/vasp/source/util.cpp
blob: 0b1050c153f6f2e93b81265b58c735b4e33486b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* 

VASP modular - vector assembling signal processor / objects for Max/MSP and PD

Copyright (c) 2002 Thomas Grill (xovo@gmx.net)
For information on usage and redistribution, and for a DISCLAIMER OF ALL
WARRANTIES, see the file, "license.txt," in this distribution.  

*/

#include "main.h"
#include "util.h"
#include <math.h>

/*
R arg(R re,R im)
{
	if(re) 
		return fmod(atan(im/re)+(re < 0?2*PI:PI),2*PI)-PI;
	else
		if(im || re) return im > 0?PI/2:-PI/2;
		else return 0;
}
*/