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 public class PolygonCoordinate {
16
17     /**
18      * Space coordinate of the point.
19      */
20     public Point3D spaceCoordinate;
21
22     /**
23      * Texture coordinate of the point.
24      */
25     public Point2D textureCoordinate;
26
27     public PolygonCoordinate(final Point3D spaceCoordinate, final Point2D textureCoordinate) {
28         this.spaceCoordinate = spaceCoordinate;
29         this.textureCoordinate = textureCoordinate;
30     }
31
32 }