Comment faire une methode qui calcule l'homothetie en java
Evens08 Messages postés 2 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
J'ai un petit souci pour créer un fonction qui calcul l’homothétie d'un point.
Exemple : class Point{
private int x, y;
public Point(){
this.x=0;
this.y=0;
}
public Point(int x, int y){
this.x=x;
this.y=y;
}
public void homothetie(Point cenre, int k){
je voulais une idée de comment écrire cette méthode. Merci
}
}
Quelqu'un pouvez m'aider s'il vous plait.
- Comment faire une methode qui calcule l'homothetie en java
- Waptrick java football - Télécharger - Jeux vidéo
- Jeux java itel - Télécharger - Jeux vidéo
- Eclipse java - Télécharger - Langages
- Java apk - Télécharger - Langages
- Waptrick java voiture - Télécharger - Jeux vidéo
3 réponses
Bonsoir
pour poster un code, il faut faire comme décrit là https://codes-sources.commentcamarche.net/faq/11288-poster-un-extrait-de-code
Pour ton problème à proprement parler, as tu cherché un cours de maths sur les homothéties ?