2 * Sixth 3D engine. Author: Svjatoslav Agejenko.
3 * This project is released under Creative Commons Zero (CC0) license.
5 package eu.svjatoslav.sixth.e3d.renderer.raster.shapes.basic.line;
7 import eu.svjatoslav.sixth.e3d.geometry.Point3D;
8 import eu.svjatoslav.sixth.e3d.renderer.raster.Color;
10 public class LineAppearance {
12 private final double lineWidth;
14 private Color color = new Color(100, 100, 255, 255);
16 public LineAppearance() {
20 public LineAppearance(final double lineWidth) {
21 this.lineWidth = lineWidth;
24 public LineAppearance(final double lineWidth, final Color color) {
25 this.lineWidth = lineWidth;
29 public Line getLine(final Point3D point1, final Point3D point2) {
30 return new Line(point1, point2, color, lineWidth);
33 public Line getLine(final Point3D point1, final Point3D point2,
35 return new Line(point1, point2, color, lineWidth);
38 public double getLineWidth() {