37#if !OOMATHS_STANDALONE
43NSString *VectorDescription(Vector vector)
45 return [NSString stringWithFormat:@"(%g, %g, %g)", vector.x, vector.y, vector.z];
48@implementation OONativeVector
50- (id) initWithVector:(Vector)vect
72#if !OOMATHS_STANDALONE
93 while (m > 0.25f || m == 0.0f);
95 return vector_normal(v);
111 return vector_multiply_scalar(v, maxLength * 2.0f);
124 result.x = bb.min.x +
randf() * (bb.max.x - bb.min.x);
125 result.y = bb.min.y +
randf() * (bb.max.y - bb.min.y);
126 result.z = bb.min.z +
randf() * (bb.max.z - bb.min.z);
const Vector2D kBasisYVector2D
const BoundingBox kZeroBoundingBox
const Vector2D kZeroVector2D
const Vector kBasisYVector
Vector OORandomUnitVector(void)
const Vector2D kBasisXVector2D
const Vector kBasisZVector
Vector OORandomPositionInBoundingBox(BoundingBox bb)
const Vector kBasisXVector
Vector OOVectorRandomRadial(OOScalar maxLength)
Vector OOVectorRandomSpatial(OOScalar maxLength)