public static IntVector ClampY(this IntVector intVector, int yMax) { return(new IntVector(intVector.Y, Math.Min(intVector.Y, yMax))); }
public static IntVector ClampX(this IntVector intVector, int xMax) { return(new IntVector(Math.Min(intVector.X, xMax), intVector.Y)); }
public override IntVector Execute(List <Line> lines, IntVector pos, params object[] parameters) { pos.X = 0; pos.Y = 0; return(pos); }
public static IntVector ClampValue(this IntVector intVector, IntVector other) { return(intVector.ClampX(other.X).ClampY(other.Y)); }
public abstract IntVector Execute(List <Line> lines, IntVector pos, params object[] parameters);