Packages

class Line extends Segment with Lerp[Vec] with Open

Source
geom.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Line
  2. Open
  3. Shape
  4. Segment
  5. Lerp
  6. AnyRef
  7. Any
Implicitly
  1. by richDrxAny
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Line(a: Vec, b: Vec)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def *(x: Double): Line
  4. def +(that: Vec): Line
  5. def -(that: Vec): Line
  6. def ->[B](y: B): (Line, B)
    Implicit
    This member is added by an implicit conversion from Line toArrowAssoc[Line] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  7. def /(x: Double): Line
  8. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def ^(that: Line): Seq[Vec]
  10. val a: Vec
    Definition Classes
    LineSegment
  11. def applyIf(t: Boolean, f: (Line) => Line): Line
    Implicit
    This member is added by an implicit conversion from Line toDrxAny[Line] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  12. def applyIf(t: (Line) => Boolean)(f: (Line) => Line): Line

    better chaining for types

    better chaining for types

    Implicit
    This member is added by an implicit conversion from Line toDrxAny[Line] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  13. def arrowHead(size: Double): Tri
    Definition Classes
    Segment
  14. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  15. val b: Vec
    Definition Classes
    LineSegment
  16. def bezier: Bezier
  17. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  18. def closest(p: Vec): Vec

    point closest on a segment of two points (a to b) to point p

  19. lazy val cm: Vec
  20. lazy val delta: Vec
  21. def dist(p: Vec): Double
  22. lazy val dist: Double
    Definition Classes
    LineSegment
  23. def draw(implicit g: DrawContext): Unit

    generic draw method

    generic draw method

    Definition Classes
    LineShape
  24. def elementOf(xs: Set[Line]): Boolean
    Implicit
    This member is added by an implicit conversion from Line toDrxAny[Line] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  25. def end: Vec

    alias for max

    alias for max

    Definition Classes
    Lerp
  26. def ensuring(cond: (Line) => Boolean, msg: => Any): Line
    Implicit
    This member is added by an implicit conversion from Line toEnsuring[Line] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  27. def ensuring(cond: (Line) => Boolean): Line
    Implicit
    This member is added by an implicit conversion from Line toEnsuring[Line] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  28. def ensuring(cond: Boolean, msg: => Any): Line
    Implicit
    This member is added by an implicit conversion from Line toEnsuring[Line] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  29. def ensuring(cond: Boolean): Line
    Implicit
    This member is added by an implicit conversion from Line toEnsuring[Line] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  30. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  32. def extrude(v: Vec): Poly
  33. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  34. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Line toStringFormat[Line] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  35. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  36. def grad(t: Double): Vec
    Definition Classes
    LineSegment
  37. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  38. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  39. def label(text: String, offset: Double = 0): Text
  40. def last: Vec
    Definition Classes
    LineSegment
  41. def left(p: Vec): Boolean
  42. def lerp(t: Double): Vec

    required methods

    required methods

    Definition Classes
    LineSegmentLerp
  43. def max: Vec
    Definition Classes
    Lerp
  44. def mid: Vec

    convenience of the mid value

    convenience of the mid value

    Definition Classes
    Lerp
  45. def min: Vec
    Definition Classes
    Lerp
  46. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  47. def noneIf(f: (Line) => Boolean): Option[Line]
    Implicit
    This member is added by an implicit conversion from Line toDrxAny[Line] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  48. def normal(implicit rand: Rand): Vec
    Definition Classes
    Lerp
  49. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  50. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  51. def optionIf(f: (Line) => Boolean): Option[Line]

    optionally wrap an object

    optionally wrap an object

    Implicit
    This member is added by an implicit conversion from Line toDrxAny[Line] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  52. def orthoDist(p: Vec): Double
  53. def preApply[B](f: (Line) => B): B

    a preApply f => f(a)

    a preApply f => f(a)

    Implicit
    This member is added by an implicit conversion from Line toDrxAny[Line] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  54. def projectedIntersection(that: Line): Option[Vec]
  55. def pulse(period: Time): Vec
    Definition Classes
    Lerp
  56. def ramp(t: Time)(implicit t0: Date): Vec
    Definition Classes
    Lerp
  57. lazy val rect: Rect
  58. def right(p: Vec): Boolean
  59. def round: Line
  60. def sideEffect(f: (Line) => Unit): Line

    side effect filter

    side effect filter

    Implicit
    This member is added by an implicit conversion from Line toDrxAny[Line] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  61. lazy val slope: Double
  62. def someIf(f: (Line) => Boolean): Option[Line]
    Implicit
    This member is added by an implicit conversion from Line toDrxAny[Line] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  63. def start: Vec

    alias for min

    alias for min

    Definition Classes
    Lerp
  64. def step(stepDist: Double): Iterable[Vec]
    Definition Classes
    Segment
  65. def swap: Line
  66. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  67. def take(n: Int): Iterable[Vec]
    Definition Classes
    Lerp
  68. val thisAny: Line
    Implicit
    This member is added by an implicit conversion from Line toDrxAny[Line] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  69. def tickCount(stepDist: Double): Int
    Definition Classes
    Segment
  70. def toArrow: Arrow
  71. def toBound: Bound[Vec]
  72. def toBound(implicit b: Boundable[Vec]): Bound[Vec]
    Definition Classes
    Lerp
  73. def toString(): String
    Definition Classes
    AnyRef → Any
  74. def toTuple: (Vec, Vec)
  75. def uniform(implicit rand: Rand): Vec
    Definition Classes
    Lerp
  76. def vertices: List[Vec]
  77. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  78. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  79. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  80. def x2d(that: Line): Double
  81. lazy val yIntercept: Double
  82. def zip[B](xs: Iterable[B]): Iterable[(Vec, B)]
    Definition Classes
    Lerp
  83. def ~(c: Vec): Poly
  84. def ~(color: Color): Styled

    provide a quick automatic way to set a fill or stroke all shapes have a stroke even if they can be filled (but the ClosedShape overrides this to provide a fill color)

    provide a quick automatic way to set a fill or stroke all shapes have a stroke even if they can be filled (but the ClosedShape overrides this to provide a fill color)

    Definition Classes
    OpenShape
  85. def ~(property: Property): Styled

    initialize shape with a style

    initialize shape with a style

    Definition Classes
    Shape
  86. def ~(style: Style): Styled

    Attach a style to a shape

    Attach a style to a shape

    Definition Classes
    Shape

Shadowed Implicit Value Members

  1. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Line toany2stringadd[Line] performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (line: any2stringadd[Line]).+(other)
    Definition Classes
    any2stringadd

Deprecated Value Members

  1. def ?>(f: (Line) => Boolean): Option[Line]

    alias for option if

    alias for option if

    Implicit
    This member is added by an implicit conversion from Line toDrxAny[Line] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.15) to many symbols are hard to undertand

  2. lazy val bounds: Rect
    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.13) use rect for a more direct meaning since bound has other meanings in drx

  3. def mean: Vec
    Definition Classes
    Lerp
    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.15) use mid instead since 0.5 may not be the mean

  4. def steps(N: Int): Seq[Vec]
    Definition Classes
    Lerp
    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.4) use take(N:Int) for a more scala semantic

  5. def |>[B](f: (Line) => B): B
    Implicit
    This member is added by an implicit conversion from Line toDrxAny[Line] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.15) use preApply if you must (symbols are concise without concision)

  6. def [B](y: B): (Line, B)
    Implicit
    This member is added by an implicit conversion from Line toArrowAssoc[Line] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from Open

Inherited from Shape

Inherited from Segment

Inherited from Lerp[Vec]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion richDrxAny fromLine to DrxAny[Line]

Inherited by implicit conversion any2stringadd fromLine to any2stringadd[Line]

Inherited by implicit conversion StringFormat fromLine to StringFormat[Line]

Inherited by implicit conversion Ensuring fromLine to Ensuring[Line]

Inherited by implicit conversion ArrowAssoc fromLine to ArrowAssoc[Line]

Ungrouped