2 * Sixth 3D engine. Copyright ©2012-2016, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of version 3 of the GNU Lesser General Public License
6 * or later as published by the Free Software Foundation.
10 package eu.svjatoslav.sixth.e3d.renderer.raster.shapes.basic.line;
12 import eu.svjatoslav.sixth.e3d.geometry.Point3D;
13 import eu.svjatoslav.sixth.e3d.renderer.raster.Color;
15 public class LineAppearance {
17 private final double lineWidth;
19 private Color color = new Color(100, 100, 255, 255);
21 public LineAppearance() {
25 public LineAppearance(final double lineWidth) {
26 this.lineWidth = lineWidth;
29 public LineAppearance(final double lineWidth, final Color color) {
30 this.lineWidth = lineWidth;
34 public Line getLine(final Point3D point1, final Point3D point2) {
35 return new Line(point1, point2, color, lineWidth);
38 public Line getLine(final Point3D point1, final Point3D point2,
40 return new Line(point1, point2, color, lineWidth);
43 public double getLineWidth() {