ChucK/Programmer's Reference †ChucK - [Programmer's Reference]の内容を日本語にしたものです.
Standard Libraries †version: 1.2.x.x (dracula) namespace: Std †[使用例] 100~1000の乱数生成 Std.rand2f( 100.0, 1000.0 ) int abs ( int value ); †
float fabs ( float value ); †
int rand ( ); †
int rand2 ( int min, int max ); †
float randf ( ); †
float rand2f ( float min, float max ); †
float sgn ( float value ); †
int system ( string cmd ); †
int atoi ( string value ); †
float atof ( string value ); †
string getenv ( string key ); †
int setenv ( string key, string value ); †
float mtof ( float value ); †
float ftom ( float value ); †
float powtodb ( float value ); †
float rmstodb ( float value ); †
float dbtopow ( float value ); †
float dbtorms ( float value ); †
namespace: Machine †int add ( string path ); †
int spork ( string path ); †
int remove ( int id ); †
int replace ( int id, string path ); †
int status ( ); †
void crash ( ); †
namespace: Math †[使用例] sin(pi/2) Math.sin( pi / 2.0 ) float sin ( float x ); †
float cos ( float x ); †
float tan ( float x ); †
float asin ( float x ); †
float acos ( float x ); †
float atan ( float x ); †
float atan2 ( float y, float x ); †
float sinh ( float x ); †
float cosh ( float x ); †
float tanh ( float x ); †
float hypot ( float x, float y ); †
float pow ( float x, float y ); †
float sqrt ( float x ); †
float exp ( float x ); †
float log ( float x ); †
float log2 ( float x ); †
float log10 ( float x ); †
float floor ( float x ); †
float ceil ( float x ); †
float round ( float x ); †
float trunc ( float x ); †
float fmod ( float x, float y ); †
float remainder ( float x, float y ); †
float min ( float x, float y ); †
float max ( float x, float y ); †
int nextpow2 ( int x ); †
float isinf ( float x ); †
float isnan ( float x ); †
float pi; †
float twopi; †
float e; †
|