Line

final case
class Line(start: Point, end: Point, stroke: Stroke, lighting: LightingModel, rotation: Radians, scale: Vector2, depth: Depth, ref: Point, flip: Flip, shaderId: Option[ShaderId]) extends Shape

Draws a straight line.

Companion
object
trait Serializable
trait Product
trait Equals
trait Shape
trait Cloneable
trait SceneNode
class Object
trait Matchable
class Any

Value members

Concrete methods

def flipHorizontal(isFlipped: Boolean): Line
def flipVertical(isFlipped: Boolean): Line
def moveBy(amount: Point): Line
def moveBy(x: Int, y: Int): Line
def moveEndBy(amount: Point): Line
def moveEndBy(x: Int, y: Int): Line
def moveEndTo(newPosition: Point): Line
def moveEndTo(x: Int, y: Int): Line
def moveStartBy(amount: Point): Line
def moveStartBy(x: Int, y: Int): Line
def moveStartTo(newPosition: Point): Line
def moveStartTo(x: Int, y: Int): Line
def moveTo(newPosition: Point): Line
def moveTo(x: Int, y: Int): Line
def rotateBy(angle: Radians): Line
def rotateTo(angle: Radians): Line
def scaleBy(amount: Vector2): Line
def scaleBy(x: Double, y: Double): Line
def transformBy(positionDiff: Point, rotationDiff: Radians, scaleDiff: Vector2): Line
def transformTo(newPosition: Point, newRotation: Radians, newScale: Vector2): Line
def withDepth(newDepth: Depth): Line
def withFlip(newFlip: Flip): Line
def withLighting(newLighting: LightingModel): Line
def withPosition(newPosition: Point): Line
def withRef(newRef: Point): Line
def withRef(x: Int, y: Int): Line
def withRotation(newRotation: Radians): Line
def withScale(newScale: Vector2): Line
def withShaderId(newShaderId: ShaderId): Line
def withStroke(newStroke: Stroke): Line
def withStrokeColor(newStrokeColor: RGBA): Line
def withStrokeWidth(newWidth: Int): Line

Inherited methods

Inherited from
Shape
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product

Concrete fields

lazy
lazy
val size: Size