二次元ベクトルを扱うクラス
void | Vector2(void) |
void | Vector2(double) |
void | Vector2(double,double) |
this | add(double) |
this | add(Vector2) |
double | angle(Vector2) |
Vector2 | clone(void) |
this | cross(Vector2) |
double | distance(void) |
this | div(double) |
this | div(Vector2) |
double | dot(void) |
bool | equals(Vector2) |
double | length(void) |
this | mul(double) |
this | mul(Vector2) |
double | norm(void) |
this | normalize(void) |
this | sub(double) |
this | sub(Vector2) |
double x; double y;
//example var v0 = Vector2(); var v1 = Vector2(1.0); var v2 = Vector2(0.0,1.0);
return this
return this
return double
return Vector2
return this
return double
return this
return this
return double
return bool
return double
return this
return this
return double
return this
return this
return this