Vector3

三次元ベクトルを扱うクラス

voidVector3(void)
voidVector3(double)
voidVector3(double,double,double)
thisadd(double)
thisadd(Vector3)
doubleangle(Vector3)
Vector3clone(void)
thiscross(Vector3)
doubledistance(void)
thisdiv(double)
thisdiv(Vector3)
doubledot(void)
boolequals(Vector3)
doublelength(void)
thismul(double)
thismul(Vector3)
thismul(Quaternion)
thismul(Matrix4)
doublenorm(void)
thisnormalize(void)
thissub(double)
thissub(Vector3)

Property

double x;
double y;
double z;

Function


Vector3(void)

Vector3(double)

Vector3(double,double,double)

//example
var v0 = Vector3();
var v1 = Vector3(1.0);
var v2 = Vector3(0.0,0.0,1.0);

add(double)

return this


add(Vector3)

return this


angle(Vector3)

return double


clone(void)

return Vector3


cross(Vector3)

return this


distance(Vector3)

return double


div(double)

return this


div(Vector3)

return this


dot(Vector3)

return double


equals(Vector3)

return bool


length(void)

return double


mul(double)

return this


mul(Vector3)

return this


mul(Quaternion)

return this


mul(Matrix4)

return this


norm(void)

return double


normalize(void)

return this


sub(double)

return this


sub(Vector3)

return this