Improved code readability
[sixth-3d.git] / src / main / java / eu / svjatoslav / sixth / e3d / renderer / raster / slicer / PolygonCoordinate.java
1 /*
2  * Sixth 3D engine. Author: Svjatoslav Agejenko.
3  * This project is released under Creative Commons Zero (CC0) license.
4  */
5 package eu.svjatoslav.sixth.e3d.renderer.raster.slicer;
6
7 import eu.svjatoslav.sixth.e3d.geometry.Point2D;
8 import eu.svjatoslav.sixth.e3d.geometry.Point3D;
9
10 /**
11  * Polygon coordinate.
12  * This class is used to store coordinates of a point in 3D space and its
13  * texture coordinate.
14  *
15  * TODO: Refactor this class out of existence. Use Vertex instead. Texture coordinates should be moved to Vertex.
16  */
17 public class PolygonCoordinate {
18
19     /**
20      * Space coordinate of the point.
21      */
22     public Point3D spaceCoordinate;
23
24     /**
25      * Texture coordinate of the point.
26      */
27     public Point2D textureCoordinate;
28
29     public PolygonCoordinate(final Point3D spaceCoordinate, final Point2D textureCoordinate) {
30         this.spaceCoordinate = spaceCoordinate;
31         this.textureCoordinate = textureCoordinate;
32     }
33
34 }