public VectorPoint Div(VectorPoint other) { var newX = Mathi.Div(x, other.X); var newY = Mathi.Div(y, other.Y); return(new VectorPoint(newX, newY)); }
private DiamondPoint GetEdgeFaceAnchor() { /* * 0 0 -> 0 0 * 0 1 -> 0 0 * 1 0 -> 0 -1 * 1 1 -> 1 0 */ return(new DiamondPoint( Mathi.Div(X + Y, 2), Mathi.Div(Y - X, 2))); }
public LinePoint Div(LinePoint other) { return(Mathi.Div(n, other.n)); }
public LinePoint ScaleDown(int r) { return(Mathi.Div(n, r)); }
public VectorPoint ScaleDown(int r) { return(new VectorPoint( Mathi.Div(x, r), Mathi.Div(y, r))); }