33#ifndef OOMATHS_EXTERNAL_VECTOR_TYPES
83#define HPvector_between(a, b) HPvector_subtract(b, a)
130NSString* HPVectorDescription(
HPVector vector);
131NSArray* ArrayFromHPVector(
HPVector vector);
136#define GLVertexOOHPVector(v) \
139 glVertex3f(v_.x, v_.y, v_.z); \
141#define GLTranslateOOHPVector(v) \
144 OOGL(glTranslatef(v_.x, v_.y, v_.z)); \
252 return a.
x == b.
x && a.
y == b.
y && a.
z == b.
z;
257 return vec.
x * vec.
x + vec.
y * vec.
y + vec.
z * vec.
z;
306 result.
x = (first.
y * second.
z) - (first.
z * second.
y);
307 result.
y = (first.
z * second.
x) - (first.
x * second.
z);
308 result.
z = (first.
x * second.
y) - (first.
y * second.
x);
319 return (a.
x * b.
x) + (a.
y * b.
y) + (a.
z * b.
z);
OOINLINE double OOLerpd(double v0, double v1, double fraction) INLINE_CONST_FUNC
#define ALWAYS_INLINE_FUNC
#define INLINE_CONST_FUNC
const HPVector kBasisXHPVector
HPVector OOHPVectorRandomRadial(OOHPScalar maxLength)
HPVector OOProjectHPVectorToPlane(HPVector point, HPVector plane, HPVector normal)
OOINLINE HPVector HPvector_flip(HPVector v) INLINE_CONST_FUNC
HPVector OORandomPositionInShell(HPVector centre, OOHPScalar inner, OOHPScalar outer)
OOINLINE HPVector HPvector_normal_or_ybasis(HPVector vec) INLINE_CONST_FUNC
const HPVector2D kBasisYHPVector2D
OOINLINE HPVector vectorToHPVector(Vector v) INLINE_CONST_FUNC
OOINLINE OOHPScalar HPdot_product(HPVector first, HPVector second) INLINE_CONST_FUNC
const HPVector kBasisYHPVector
OOINLINE HPVector HPvector_subtract(HPVector a, HPVector b) INLINE_CONST_FUNC
OOINLINE HPVector HPvector_multiply_scalar(HPVector v, OOHPScalar s) INLINE_CONST_FUNC
OOINLINE HPVector HPcross_product(HPVector first, HPVector second) INLINE_CONST_FUNC
const HPVector kZeroHPVector
OOINLINE HPVector HPnormal_to_surface(HPVector v1, HPVector v2, HPVector v3) CONST_FUNC
OOINLINE void HPscale_vector(HPVector *outHPVector, OOHPScalar factor) ALWAYS_INLINE_FUNC NONNULL_FUNC
OOINLINE bool HPvector_equal(HPVector a, HPVector b) INLINE_CONST_FUNC
OOINLINE HPVector HPvector_normal_or_fallback(HPVector vec, HPVector fallback) INLINE_CONST_FUNC
OOINLINE OOHPScalar HPmagnitude(HPVector vec) INLINE_CONST_FUNC
OOINLINE Vector HPVectorToVector(HPVector v) INLINE_CONST_FUNC
OOINLINE HPVector HPvector_normal_or_xbasis(HPVector vec) INLINE_CONST_FUNC
OOINLINE HPVector make_HPvector(OOHPScalar vx, OOHPScalar vy, OOHPScalar vz) INLINE_CONST_FUNC
HPVector OORandomUnitHPVector(void)
OOINLINE OOHPScalar HPdistance2(HPVector v1, HPVector v2) INLINE_CONST_FUNC
OOINLINE HPVector HPvector_normal(HPVector vec) INLINE_CONST_FUNC
OOINLINE HPVector OOHPVectorTowards(HPVector a, HPVector b, OOHPScalar where) INLINE_CONST_FUNC
OOINLINE HPVector HPvector_normal_or_zbasis(HPVector vec) INLINE_CONST_FUNC
const HPVector2D kBasisXHPVector2D
OOINLINE HPVector HPvector_add(HPVector a, HPVector b) INLINE_CONST_FUNC
OOINLINE HPVector HPtrue_cross_product(HPVector first, HPVector second) CONST_FUNC
HPVector OOHPVectorRandomSpatial(OOHPScalar maxLength)
OOINLINE OOHPScalar HPtriple_product(HPVector first, HPVector second, HPVector third) INLINE_CONST_FUNC
const HPVector2D kZeroHPVector2D
const HPVector kBasisZHPVector
OOINLINE OOHPScalar HPmagnitude2(HPVector vec) INLINE_CONST_FUNC
OOINLINE HPVector2D MakeHPVector2D(OOHPScalar vx, OOHPScalar vy) INLINE_CONST_FUNC
OOINLINE OOHPScalar HPdistance(HPVector v1, HPVector v2) INLINE_CONST_FUNC
OOINLINE HPVector OOHPVectorInterpolate(HPVector a, HPVector b, OOHPScalar where) INLINE_CONST_FUNC
HPVector OORandomPositionInCylinder(HPVector centre1, OOHPScalar exclusion1, HPVector centre2, OOHPScalar exclusion2, OOHPScalar radius)