2 * Sixth 3D engine. Author: Svjatoslav Agejenko.
3 * This project is released under Creative Commons Zero (CC0) license.
8 package eu.svjatoslav.sixth.e3d.renderer.raster.shapes.basic.line;
10 import eu.svjatoslav.sixth.e3d.geometry.Point3D;
11 import eu.svjatoslav.sixth.e3d.renderer.raster.Color;
13 public class LineAppearance {
15 private final double lineWidth;
17 private Color color = new Color(100, 100, 255, 255);
19 public LineAppearance() {
23 public LineAppearance(final double lineWidth) {
24 this.lineWidth = lineWidth;
27 public LineAppearance(final double lineWidth, final Color color) {
28 this.lineWidth = lineWidth;
32 public Line getLine(final Point3D point1, final Point3D point2) {
33 return new Line(point1, point2, color, lineWidth);
36 public Line getLine(final Point3D point1, final Point3D point2,
38 return new Line(point1, point2, color, lineWidth);
41 public double getLineWidth() {