public DrawData(Camera camera) : this() { Camera = camera; Texture = null; Position = new LengthVector2(Vector2.Zero, Length.Units.Pixel); LayerDepth = 0f; Color = Color.White; Rotation = 0f; Scale = Vector2.One; Origin = Vector2.Zero; SourceRectangle = null; DestinationRectangle = null; Fx = SpriteEffects.None; }
internal static void Clamp(LengthVector2 v, float max, float min) { v.X.Meter = CapNumber(v.X.Meter, (decimal)min, (decimal)max); v.Y.Meter = CapNumber(v.Y.Meter, (decimal)min, (decimal)max); }
public static void Clamp(LengthVector2 v, Length max, Length min) { v.X.Meter = CapNumber(v.X.Meter, min.Meter, max.Meter); v.Y.Meter = CapNumber(v.Y.Meter, min.Meter, max.Meter); }