From 37aa9f0ac521e6a191d73af141a59d43decd7a97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Tue, 19 Apr 2022 10:25:47 +0200 Subject: [PATCH] style: autoformat Co-authored-by: pejour --- Texture.java | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/Texture.java b/Texture.java index 0ed415b..e262c45 100644 --- a/Texture.java +++ b/Texture.java @@ -14,23 +14,22 @@ public class Texture { /** * Constructs a new Texture with the content of the image at @path. - */ - public Texture (String path) throws Exception { - image = ImageIO.read (new File (path)); - width = image.getWidth (); - height = image.getHeight (); + */ + public Texture(String path) throws Exception { + image = ImageIO.read(new File(path)); + width = image.getWidth(); + height = image.getHeight(); } /** - * Samples the texture at texture coordinates (u,v), using nearest neighboor interpolation + * Samples the texture at texture coordinates (u,v), using nearest neighboor + * interpolation * u and v and wrapped around to [0,1]. - */ - public Color sample (double u, double v) { + */ + public Color sample(double u, double v) { + /* A COMPLETER */ - /* A COMPLETER */ - - - return new Color (0,0,0); + return new Color(0, 0, 0); } }