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