9 #ifndef _LIBALMATH_ALMATH_TYPES_ALPOSITION3D_H_
10 #define _LIBALMATH_ALMATH_TYPES_ALPOSITION3D_H_
13 #include <almath/api.h>
109 Position3D (
const std::vector<float>& pFloats);
234 const float& pEpsilon=0.0001f)
const;
285 void toVector(std::vector<float>& pReturnVector)
const;
286 std::vector<float> toVector(
void)
const;
292 void writeToVector(std::vector<float>::iterator& pIt)
const;
328 const Position3D& pPos1,
329 const Position3D& pPos2);
343 const Position3D& pPos1,
344 const Position3D& pPos2);
356 ALMATH_API
float norm(
const Position3D& pPos);
368 ALMATH_API Position3D
normalize(
const Position3D& pPos);
381 const Position3D& pPos1,
382 const Position3D& pPos2);
397 const Position3D& pPos1,
398 const Position3D& pPos2);
411 const Position3D& pPos1,
412 const Position3D& pPos2,
425 const float& pEpsilon=0.0001f);
438 const Position3D& pPos2,
439 const float& pEpsilon=0.0001f);
443 #endif // _LIBALMATH_ALMATH_TYPES_ALPOSITION3D_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)
bool isNear(const Transform &lhs, const Transform &rhs, double epsilon)
ALMATH_API bool isOrthogonal(const Position3D &pPos1, const Position3D &pPos2, const float &pEpsilon=0.0001f)
Checks if two Position3D are orthogonal
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 bool isUnitVector(const Position3D &pPos, const float &pEpsilon=0.0001f)
Checks if the norm of a Position3D is near to 1.0
ALMATH_API Position2D normalize(const Position2D &pPos)
Normalize a Position2D.
Create and play with a Position3D.
ALMATH_API float norm(const Position2D &pPos)
Compute the norm of a Position2D.
bool operator==(const BodyMass< T > &lhs, const BodyMass< T > &rhs)