public IntVector Normal(IntGeom iGeom) { var p = iGeom.Float(this); var l = Mathf.Sqrt(p.x * p.x + p.y * p.y); float k = 1.0f / l; return(iGeom.Int(new Vector2(k * p.x, k * p.y))); }
public IntShape(Shape shape, IntGeom iGeom) { this.hull = iGeom.Int(shape.hull); this.holes = iGeom.Int(shape.holes); }
public Shape(IntShape shape, IntGeom iGeom) { this.hull = iGeom.Float(shape.hull); this.holes = iGeom.Float(shape.holes); }