style: autoformat

Co-authored-by: pejour <pejour@users.noreply.github.com>
This commit is contained in:
Laureηt 2022-04-19 10:25:47 +02:00
parent 984db29300
commit 37aa9f0ac5
No known key found for this signature in database
GPG key ID: D88C6B294FD40994

View file

@ -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);
}
}