final case class Rectangle(top: Float, right: Float, base: Float, left: Float, inPlane: AxisAlignment2D) extends Flat with Product with Serializable
An axis-aligned planar region.
- top
the highest "vertical" coordinate
- right
the furthest "horizontal" coordinate
- base
the highest "vertical" coordinate
- left
the nearest "horizontal" coordinate
- inPlane
the axis plan that the geometry occupies; for example, an XY-axis rectangle is Z-up
- Source
- Rectangle.scala
- Alphabetic
- By Inheritance
- Rectangle
- Serializable
- Product
- Equals
- Flat
- Geometry2D
- PrimitiveGeometry
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Rectangle(top: Float, right: Float, base: Float, left: Float, inPlane: AxisAlignment2D)
- top
the highest "vertical" coordinate
- right
the furthest "horizontal" coordinate
- base
the highest "vertical" coordinate
- left
the nearest "horizontal" coordinate
- inPlane
the axis plan that the geometry occupies; for example, an XY-axis rectangle is Z-up
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 asInstanceOf[T0]: T0
- Definition Classes
- Any
- val base: Float
- def center: Point
The centroid of the geometry.
The centroid of the geometry.
- returns
a point
- Definition Classes
- Rectangle → Geometry2D → PrimitiveGeometry
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val inPlane: AxisAlignment2D
- Definition Classes
- Rectangle → Geometry2D
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val left: Float
- def moveCenter(point: geometry.Point): Rectangle
Move the centroid of the shape to the given point
Move the centroid of the shape to the given point
- point
the new center point
- returns
geometry centered on the new point; ideally, should be the same type of geometry as the original object
- Definition Classes
- Rectangle → PrimitiveGeometry
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def pointOnOutside(v: Vector3): Point
- Definition Classes
- Geometry2D
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val right: Float
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val top: Float
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()