9 #ifndef _LIBALMATH_ALMATH_TYPES_ALPOSITION2D_H_
10 #define _LIBALMATH_ALMATH_TYPES_ALPOSITION2D_H_
13 #include <almath/api.h>
109 static Position2D fromPolarCoordinates(
const float pRadius,
238 const float& pEpsilon=0.0001f)
const;
287 void toVector(std::vector<float>& pReturnVector)
const;
288 std::vector<float> toVector(
void)
const;
294 void writeToVector(std::vector<float>::iterator& pIt)
const;
301 float getAngle()
const;
307 const Position2D& pPos1);
321 const Position2D& pPos1,
322 const Position2D& pPos2);
336 const Position2D& pPos1,
337 const Position2D& pPos2);
349 ALMATH_API
float norm(
const Position2D& pPos);
361 ALMATH_API Position2D
normalize(
const Position2D& pPos);
374 const Position2D& pPos1,
375 const Position2D& pPos2);
389 const Position2D& pPos1,
390 const Position2D& pPos2);
403 const Position2D& pPos1,
404 const Position2D& pPos2,
409 #endif // _LIBALMATH_ALMATH_TYPES_ALPOSITION2D_H_
ALMATH_API float distance(const Pose2D &pPos1, const Pose2D &pPos2)
Compute the distance between two Pose2D.
BodyMass< T > operator+(const BodyMass< T > &lhs, const BodyMass< T > &rhs)
Create and play with a Position2D.
bool isNear(const Transform &lhs, const Transform &rhs, double epsilon)
ALMATH_API float distanceSquared(const Pose2D &pPos1, const Pose2D &pPos2)
Compute the squared distance between two Pose2D.
bool operator!=(const Pose &lhs, const Pose &rhs)
ALMATH_API float crossProduct(const Position2D &pPos1, const Position2D &pPos2)
Compute the cross Product of two Position2D.
ALMATH_API float dotProduct(const Position2D &pPos1, const Position2D &pPos2)
Compute the dot Product between two Position2D:
ALMATH_API Position2D normalize(const Position2D &pPos)
Normalize a Position2D.
ALMATH_API float norm(const Position2D &pPos)
Compute the norm of a Position2D.
bool operator==(const BodyMass< T > &lhs, const BodyMass< T > &rhs)