public double GetPerimeter() { double perimeter = 0; for (int i = 0; i < NbPoints - 1; i++) { perimeter += ZZMath.GetDistance((ZZCoordinate)Coordonnees[i], (ZZCoordinate)Coordonnees[i + 1]); } return(perimeter); }
public override bool IsPointClose(Coordonnees toCheck, double precision) { return(ZZMath.GetDistance((ZZCoordinate)toCheck, (ZZCoordinate)this) < precision); }