Quark Physics
1.0
2D Rigid and Soft Body Physics Engine
|
Public Member Functions | |
QVector (float px, float py) | |
QVector & | operator+= (const QVector &other) |
QVector & | operator/= (const QVector &other) |
QVector & | operator/= (const float &value) |
QVector & | operator*= (const QVector &other) |
QVector & | operator*= (const float &value) |
QVector & | operator-= (const QVector &other) |
QVector | operator- () const |
bool | operator== (const QVector &other) const |
bool | operator!= (const QVector &other) const |
QVector | Rotated (float radianAngle) const |
float | Dot (QVector with) const |
float | Length () const |
QVector | Normalized () const |
QVector | Perpendicular () const |
float | LengthSquared () const |
bool | isNaN () const |
Static Public Member Functions | |
static QVector | Up () |
static QVector | Right () |
static QVector | Down () |
static QVector | Left () |
static QVector | Zero () |
static QVector | NaN () |
static QVector | AngleToUnitVector (const float radianAngle) |
static float | AngleBetweenTwoVectors (QVector vector, QVector referenceVector) |
static QSides | GetVectorSide (QVector vector, QVector referenceUpVector, float maxAngleDefiningSide=0.785398f) |
static QVector | GeteBisectorUnitVector (QVector pointA, QVector pointB, QVector pointC, bool checkPointsAreCCW=false) |
Public Attributes | |
float | x =0 |
float | y =0 |
Friends | |
QVector | operator+ (const QVector pointA, const QVector pointB) |
QVector | operator/ (const QVector pointA, const QVector pointB) |
QVector | operator/ (const float value, const QVector point) |
QVector | operator/ (const QVector point, const float value) |
QVector | operator* (const QVector point, const float value) |
QVector | operator* (const float value, const QVector point) |
QVector | operator- (const QVector pointA, const QVector pointB) |
ostream & | operator<< (ostream &os, QVector const &point) |