RectImp

object RectImp

Companion object for the Rect.RectImp class

Companion:
class
trait Product
trait Mirror
class Object
trait Matchable
class Any
RectImp.type

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

def apply(width: Double, height: Double, cen: Pt2): RectImp

Factory method for Rect.RectImp class.

Factory method for Rect.RectImp class.

def cenV0(cen: Pt2, v0: Pt2): RectImp

Factory method to create a RectImp from the centre point and the v0 point. The v0 point or vertex is y convention the top left vertex of the rectangle, but any of the 4 corner vertices will give the correct constructor values.

Factory method to create a RectImp from the centre point and the v0 point. The v0 point or vertex is y convention the top left vertex of the rectangle, but any of the 4 corner vertices will give the correct constructor values.