You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gdnative-core/src/core_types/geom/transform2d.rs
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -78,12 +78,11 @@ impl Transform2D {
78
78
/// Constructs the transform from a given angle (in radians), translation, and scale.
79
79
///
80
80
/// # Deprecation
81
-
/// This constructor has been deprecated due to the order of transformations applied deviate from one's expectations. An identity transform is translated, rotated, and scaled. Using a non-zero rotation will affect the resulting transform's origin.
81
+
/// This constructor has been deprecated due to the order of transformations applied deviate from one's expectations.
82
+
/// Using a non-zero rotation will affect the resulting transform's origin.
82
83
///
83
84
/// Consider using [`Transform2D::from_scale_rotation_origin`] or applying transformations manually.
84
-
#[deprecated(
85
-
note = "This constructor is misleading because a non-zero rotation would affect the resulting origin. Consider using Transform2D::from_scale_rotation_origin or apply transformations manually."
86
-
)]
85
+
#[deprecated = "Misleading behavior (see description); consider `from_scale_rotation_origin` or manual transformations."]
87
86
#[inline]
88
87
pubfnfrom_rotation_translation_scale(
89
88
translation:Vector2,
@@ -98,7 +97,13 @@ impl Transform2D {
98
97
99
98
/// Constructs the transform from a given scale, angle (in radians), and origin.
100
99
///
101
-
/// This is **NOT** equivalent to `Transform2D::IDENTITY.scaled(scale).rotated(rotation).translated(origin)` or `Transform2D::IDENTITY.translated(origin).rotated(rotation).scaled(scale)`. Those transformations do not preserve the given origin, see the documentation for [`rotated`], [`scaled`], and [`translated`] for more information.
100
+
/// This is **NOT** equivalent to either of these two lines:
0 commit comments