sincerely
Singaporean
If you have not done so, read this full tutorial on how to use SGEXTN to build an application.
SGXVector2::SGXVector2(float x, float y);
static float SGXVector2::crossProduct(SGXVector2 a, SGXVector2 b);
static float SGXVector2::dotProduct(SGXVector2 a, SGXVector2 b);
static float SGXVector2::getAngleBetween(SGXVector2 a, SGXVector2 b);
[[nodiscard]] float SGXVector2::getArgument() const;
static float SGXVector2::getDistance(SGXVector2 a, SGXVector2 b);
static float SGXVector2::getDistanceSquare(SGXVector2 a, SGXVector2 b);
[[nodiscard]] float SGXVector2::getDistanceToCircle(float a, float b, float r) const;
[[nodiscard]] float SGXVector2::getDistanceToLine(SGXVector2 a, SGXVector2 b) const;
[[nodiscard]] float SGXVector2::getDistanceToSegment(SGXVector2 a, SGXVector2 b) const;
[[nodiscard]] float SGXVector2::getMagnitude() const;
[[nodiscard]] float SGXVector2::getMagnitudeSquare() const;
[[nodiscard]] SGXVector2 SGXVector2::getNearestPointOnCircle(float a, float b, float r) const;
[[nodiscard]] SGXVector2 SGXVector2::getNearestPointOnLine(SGXVector2 a, SGXVector2 b) const;
[[nodiscard]] SGXVector2 SGXVector2::getNearestPointOnSegment(SGXVector2 a, SGXVector2 b) const;
[[nodiscard]] SGXString SGXVector2::getStringForPrinting() const;
[[nodiscard]] int SGXVector2::hash() const;
SGXVector2& SGXVector2::invert();
static bool SGXVector2::isCollinear(SGXVector2 x, SGXVector2 a, SGXVector2 b, float limit);
static bool SGXVector2::isParallel(SGXVector2 a1, SGXVector2 a2, SGXVector2 b1, SGXVector2 b2, float limit);
static bool SGXVector2::isPerpendicular(SGXVector2 x, SGXVector2 a, SGXVector2 b, float limit);
static SGXVector2 SGXVector2::linearInterpolate(SGXVector2 a, SGXVector2 b, float f);
static SGXVector2 SGXVector2::midpoint(SGXVector2 a, SGXVector2 b);
SGXVector2& SGXVector2::normalise();
SGXVector2& SGXVector2::normaliseGivenMagnitude(float m);
[[nodiscard]] bool SGXVector2::operator!=(SGXVector2 x) const;
SGXVector2& SGXVector2::operator*=(float m);
[[nodiscard]] SGXVector2 SGXVector2::operator*(float m) const;
[[nodiscard]] SGXVector2 SGXVector2::operator+(SGXVector2 x) const;
SGXVector2& SGXVector2::operator+=(SGXVector2 x);
[[nodiscard]] SGXVector2 SGXVector2::operator-(SGXVector2 x) const;
SGXVector2& SGXVector2::operator-=(SGXVector2 x);
[[nodiscard]] SGXVector2 SGXVector2::operator/(float m) const;
SGXVector2& SGXVector2::operator/=(float m);
[[nodiscard]] bool SGXVector2::operator‹(SGXVector2 x) const;
[[nodiscard]] bool SGXVector2::operator==(SGXVector2 x) const;
[[nodiscard]] bool SGXVector2::operator›(SGXVector2 x) const;
static const SGXVector2 SGXVector2::origin;
SGXVector2& SGXVector2::projectToLine(SGXVector2 a, SGXVector2 b);
SGXVector2& SGXVector2::projectToX();
SGXVector2& SGXVector2::projectToY();
SGXVector2& SGXVector2::redirectUsingArgument(float a);
SGXVector2& SGXVector2::reflectAcrossLine(SGXVector2 a, SGXVector2 b);
SGXVector2& SGXVector2::reflectAcrossPoint(SGXVector2 x);
SGXVector2& SGXVector2::reflectAcrossX();
SGXVector2& SGXVector2::reflectAcrossY();
SGXVector2& SGXVector2::rotate180();
SGXVector2& SGXVector2::rotateClockwise(float a);
SGXVector2& SGXVector2::rotateClockwise90();
SGXVector2& SGXVector2::rotateCounterclockwise(float a);
SGXVector2& SGXVector2::rotateCounterclockwise90();
float SGXVector2::x;
float SGXVector2::y;
©2025 05524F.sg (Singapore)