Exemplo n.º 1
0
        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)));
        }
Exemplo n.º 2
0
 public IntShape(Shape shape, IntGeom iGeom)
 {
     this.hull  = iGeom.Int(shape.hull);
     this.holes = iGeom.Int(shape.holes);
 }
Exemplo n.º 3
0
 public Shape(IntShape shape, IntGeom iGeom)
 {
     this.hull  = iGeom.Float(shape.hull);
     this.holes = iGeom.Float(shape.holes);
 }