case class Triangle(vertex: Array[R2]) extends Double with Product with Serializable
The Triangle class enhances the Path2D.Double class (from the java.awt.geom
package) by adding a constructor for building a triangle given its vertices.
- vertex
the three corner points of the triangle
- Alphabetic
- By Inheritance
- Triangle
- Product
- Equals
- Double
- Serializable
- Path2D
- Cloneable
- Shape
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Triangle(topLeft: R2, side1: Double, side2: Double)
Construct a Right Triangle.
Construct a Right Triangle.
- topLeft
the top left point for the triangle (min x and y coordinates)
- side1
the width of the triangle (change in x)
- side2
the height of the triangle (change in y)
- new Triangle(topLeft: R2, side: Double)
Construct a Right Isosceles Triangle.
Construct a Right Isosceles Triangle.
- topLeft
the top left point for the triangle (min x and y coordinates)
- side
the length of the two sides emanating from top-left
- new Triangle(vertex: Array[R2])
- vertex
the three corner points of the triangle
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def append(arg0: PathIterator, arg1: Boolean): Unit
- Definition Classes
- Double → Path2D
- final def append(arg0: Shape, arg1: Boolean): Unit
- Definition Classes
- Path2D
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def clone(): AnyRef
- Definition Classes
- Double → Path2D → AnyRef
- final def closePath(): Unit
- Definition Classes
- Path2D
- final def contains(arg0: Rectangle2D): Boolean
- Definition Classes
- Path2D → Shape
- final def contains(arg0: Double, arg1: Double, arg2: Double, arg3: Double): Boolean
- Definition Classes
- Path2D → Shape
- final def contains(arg0: Point2D): Boolean
- Definition Classes
- Path2D → Shape
- final def contains(arg0: Double, arg1: Double): Boolean
- Definition Classes
- Path2D → Shape
- final def createTransformedShape(arg0: AffineTransform): Shape
- Definition Classes
- Path2D
- final def curveTo(arg0: Double, arg1: Double, arg2: Double, arg3: Double, arg4: Double, arg5: Double): Unit
- Definition Classes
- Double → Path2D
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getBounds(): java.awt.Rectangle
- Definition Classes
- Path2D → Shape
- final def getBounds2D(): Rectangle2D
- Definition Classes
- Double → Shape
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def getCurrentPoint(): Point2D
- Definition Classes
- Path2D
- final def getPathIterator(arg0: AffineTransform): PathIterator
- Definition Classes
- Double → Shape
- final def getPathIterator(arg0: AffineTransform, arg1: Double): PathIterator
- Definition Classes
- Path2D → Shape
- def getTopLeft: R2
Get the top-left coordinates of the polygons bounding box.
- final def getWindingRule(): Int
- Definition Classes
- Path2D
- final def intersects(arg0: Rectangle2D): Boolean
- Definition Classes
- Path2D → Shape
- final def intersects(arg0: Double, arg1: Double, arg2: Double, arg3: Double): Boolean
- Definition Classes
- Path2D → Shape
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def lineTo(arg0: Double, arg1: Double): Unit
- Definition Classes
- Double → Path2D
- final def moveTo(arg0: Double, arg1: Double): Unit
- Definition Classes
- Double → Path2D
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def quadTo(arg0: Double, arg1: Double, arg2: Double, arg3: Double): Unit
- Definition Classes
- Double → Path2D
- final def reset(): Unit
- Definition Classes
- Path2D
- final def setWindingRule(arg0: Int): Unit
- Definition Classes
- Path2D
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def transform(arg0: AffineTransform): Unit
- Definition Classes
- Double → Path2D
- final def trimToSize(): Unit
- Definition Classes
- Double → Path2D
- val vertex: Array[R2]
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated