Beispiel #1
0
 /// <summary>
 /// Tests for equality based on value comparisons of the scaled transform components.
 /// </summary>
 /// <param name="other">The other scaled transform to test equality of components against.</param>
 /// <returns>Whether the two scaled transforms are equal by component values.</returns>
 public bool Equals(MWScaledTransform other)
 {
     return
         (base.Equals(other) &&
          Scale.Equals(other.Scale));
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MWScaledTransform"/> class.
 /// </summary>
 /// <param name="transform">The other <see cref="MWScaledTransform"/> to use for the initial value of the components for the new instance.</param>
 public MWScaledTransform(MWScaledTransform transform) : base(transform)
 {
     Scale = transform.Scale;
 }