Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
CreateScale()
[2/6]
static
Matrix3x2
System.Numerics.Matrix3x2.CreateScale
(
float
scale
,
Vector2
centerPoint
)
inline
static
Definition at line
258
of file
Matrix3x2.cs
.
259
{
260
Matrix3x2
identity =
Identity
;
261
float
m = centerPoint.X * (1f - scale);
262
float
m2 = centerPoint.Y * (1f - scale);
263
identity.M11 = scale;
264
identity.M22 = scale;
265
identity.M31 = m;
266
identity.M32 = m2;
267
return
identity;
268
}
System.Numerics.Matrix3x2.Matrix3x2
Matrix3x2(float m11, float m12, float m21, float m22, float m31, float m32)
Definition
Matrix3x2.cs:40
System.Numerics.Matrix3x2.Identity
static Matrix3x2 Identity
Definition
Matrix3x2.cs:23
References
System.Numerics.Matrix3x2.Identity
.
System
Numerics
Matrix3x2
Generated by
1.10.0