39NSString* VectorDescription(
Vector vector)
41 return [NSString stringWithFormat:@"(%g, %g, %g)", vector.x, vector.y, vector.z];
44@implementation OONativeVector
46- (id)initWithVector:(
Vector)vect
84 }
while (m > 0.25f || m == 0.0f);
const BoundingBox kZeroBoundingBox
const Vector2D kBasisYVector2D
OOINLINE Vector make_vector(OOScalar vx, OOScalar vy, OOScalar vz) INLINE_CONST_FUNC
const Vector2D kZeroVector2D
const Vector kBasisYVector
OOINLINE OOScalar magnitude2(Vector vec) INLINE_CONST_FUNC
const Vector2D kBasisXVector2D
const Vector kBasisZVector
const Vector kBasisXVector
OOINLINE Vector vector_multiply_scalar(Vector v, OOScalar s) INLINE_CONST_FUNC
OOINLINE Vector vector_normal(Vector vec) INLINE_CONST_FUNC
Vector OORandomUnitVector(void)
Vector OORandomPositionInBoundingBox(BoundingBox bb)
Vector OOVectorRandomRadial(OOScalar maxLength)
Vector OOVectorRandomSpatial(OOScalar maxLength)