M9MathHelper implementation.