public void Transform(Matrix.Matrix3x3d matrix) { A = matrix * A; B = matrix * B; C = matrix * C; D = matrix * D; }
public void Transform(Matrix.Matrix3x3d matrix) { for (int i = 0; i < Points.Length; i++) { Points[i] = matrix * Points[i]; } }
public void Transform(Matrix.Matrix3x3d matrix) { Vector2d other = OtherPoint; Origin = matrix * Origin; other = matrix * other; OtherPoint = other; }
public void Transform(Matrix.Matrix3x3d matrix) { for (int i = 0; i < outlines.Length; i++) { if (!(outlines[i] is ITransformable2d)) { 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 ITransformable2d).Transform(matrix); } }
public Vector3d Sample(double t) { t *= (double)(2.0 * MathHelper.PI); Vector3d sample = new Vector3d(MathHelper.Cos(t), MathHelper.Sin(t), 0.0); // We transform by axis. Vector3d other = AxisU ^ AxisV; Matrix.Matrix3x3d transform = new Matrix.Matrix3x3d(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.Matrix3x3d matrix) { Center = matrix * Center; }