X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fsixth%2Fe3d%2Frenderer%2Fraster%2Fslicer%2FPolygonCoordinate.java;h=eb4745af0efb1a4538ece696fb6ef986b987f518;hb=9f20345e99404017a98d3ae95b7588cabb31a9bf;hp=539892e90bf8129ad2b64c2787add82b2d0d7d5f;hpb=316a696bf9db6e8eddf90ef3df5e1119481c0192;p=sixth-3d.git diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/slicer/PolygonCoordinate.java b/src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/slicer/PolygonCoordinate.java index 539892e..eb4745a 100644 --- a/src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/slicer/PolygonCoordinate.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/slicer/PolygonCoordinate.java @@ -1,5 +1,5 @@ /* - * Sixth 3D engine. Author: Svjatoslav Agejenko. + * Sixth 3D engine. Author: Svjatoslav Agejenko. * This project is released under Creative Commons Zero (CC0) license. */ package eu.svjatoslav.sixth.e3d.renderer.raster.slicer; @@ -7,14 +7,28 @@ package eu.svjatoslav.sixth.e3d.renderer.raster.slicer; import eu.svjatoslav.sixth.e3d.geometry.Point2D; import eu.svjatoslav.sixth.e3d.geometry.Point3D; +/** + * Polygon coordinate. + * This class is used to store coordinates of a point in 3D space and its + * texture coordinate. + * + * TODO: Refactor this class out of existence. Use Vertex instead. Texture coordinates should be moved to Vertex. + */ public class PolygonCoordinate { - public Point3D space; - public Point2D texture; + /** + * Space coordinate of the point. + */ + public Point3D spaceCoordinate; + + /** + * Texture coordinate of the point. + */ + public Point2D textureCoordinate; - public PolygonCoordinate(final Point3D space, final Point2D texture) { - this.space = space; - this.texture = texture; + public PolygonCoordinate(final Point3D spaceCoordinate, final Point2D textureCoordinate) { + this.spaceCoordinate = spaceCoordinate; + this.textureCoordinate = textureCoordinate; } }