blaze.common.Vector2D
Authors:
Blaze team, see AUTHORS file
Maintainers:
Mason Green (zzzzrrr)
License:
zlib/png license
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source
distribution.
- struct
Vector2D
;
- Number
x
;
- Number
y
;
- static const Vector2D
zeroVect
;
- static Vector2D
opCall
(double ax, double ay);
- Vector2D
clone
();
- keep for now, system seems dependent on it
- void
setTo
(double px, double py);
- keep for now as a convenience function
- double
dot
(Vector2D v);
- double
cross
(Vector2D v);
- Vector2D
opAdd
(double V);
- scalar addition
- Vector2D
opSub
(double n);
- Vector2D
opAddAssign
(double V);
- Vector2D
opSubAssign
(double V);
- Vector2D
opMulAssign
(double s);
- scalar multiplication
- Vector2D
opMul
(double s);
- Vector2D
opDivAssign
(double s);
- Vector2D
opDiv
(double s);
- Vector2D
opAddAssign
(ref Vector2D Other);
- vector addition
- Vector2D
opAdd
(Vector2D V);
- Vector2D
opSubAssign
(ref Vector2D Other);
- Vector2D
opSub
(Vector2D V);
- Vector2D
opNeg
();
- negation
- double
magnitude
();
- double
distance
(Vector2D v);
- Vector2D
normalize
();
- Vector2D
perp
();
- Vector2D
normalizeEquals
();
- Vector2D
leftHandNormal
();
- Vector2D
rightHandNormal
();
- Vector2D
clampMax
(double max);
- Vector2D
interpEquals
(double blend, Vector2D v);
- Vector2D
projectOnto
(Vector2D v);
- double
angle
(Vector2D v);
- static Vector2D
forAngle
(double a);
- void
forAngleEquals
(double a);
- Vector2D
rotate
(double angle);
- Vector2D
rotateAbout
(double angle, Vector2D point);
- Vector2D
rotateEquals
(double angle);
- Vector2D []
createVectorArray
(int len);
- bool
equalsZero
();
|