Example #1
0
void APlane::Translate(Vector v)
{
	if (usesTransform) {
		Transform T;
		T.CalcTranslation(v);
		trans.Compose(&T);
	}
	else {
		Vector t;

		t = Vector::Mul(normal, v);
		distance -= t.x + t.y + t.z;
	}
}