Les meilleurs développeurs informatique freelances sont sur Codeur.com
Terminé·Moins de 500 €·6 offres·624 vues·10 interactions
Voila l'énoncé :
interface Point {
x: number;
y: number;
}
function getClosestPointInsidePolygon(poly: Point[], pos: Point): Point {
// This function should return the closest point to "pos" that is inside the polygon defined by "poly"
}
// Example input:
getClosestPointInsidePolygon([ { x: 0, y: 0 }, { x: 100, y: 0 }, { x: 100, y: 100 }, { x: 0, y: 100 } ], { x: 150, y: 50 })
// should return { x: 100, y: 50 }.
// This should also work with shapes more complex than a square.
Budget indicatif : Moins de 500 €
Publication : 18 juin 2020 à 16h49
Profils recherchés : Développeur spécifique freelance, Développeur JavaScript freelance
6 freelances ont répondu à ce projet
6 propositions de devis en moins de 2h
Montant moyen des devis proposés : 150 €
Estimation du délai : 1 jour
Projet réalisé par Pixellysm