public void Transform(Matrix.Matrix3x3f matrix) { for (int i = 0; i < Points.Length; i++) { Points[i] = matrix * Points[i]; } }
public void Transform(Matrix.Matrix3x3f matrix) { A = matrix * A; B = matrix * B; C = matrix * C; D = matrix * D; }
public void Transform(Matrix.Matrix3x3f matrix) { Vector2f other = OtherPoint; Origin = matrix * Origin; other = matrix * other; OtherPoint = other; }
public void Transform(Matrix.Matrix3x3f matrix) { for (int i = 0; i < outlines.Length; i++) { if (!(outlines[i] is ITransformable2f)) { throw new InvalidOperationException( string.Format("The outline '{0}' at index '{1}' is not transformable", outlines[i], i)); } } for (int i = 0; i < outlines.Length; i++) { (outlines[i] as ITransformable2f).Transform(matrix); } }
public Vector3f Sample(float t) { t *= (float)(2.0 * MathHelper.PI); Vector3f sample = new Vector3f(MathHelper.Cos(t), MathHelper.Sin(t), 0.0f); // We transform by axis. Vector3f other = AxisU ^ AxisV; Matrix.Matrix3x3f transform = new Matrix.Matrix3x3f(AxisU.X, AxisV.X, other.X, AxisU.Y, AxisV.Y, other.Y, AxisU.Z, AxisV.Z, other.Z); sample = transform * sample; // We return transformed position. return(Center + sample); }
public void Transform(Matrix.Matrix3x3f matrix) { Center = matrix * Center; }