de.sciss.collection.geom

IntSquare

final case class IntSquare(cx: Int, cy: Int, extent: Int) extends IntSquareLike with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, IntSquareLike, QueryShape[Long, TwoDim], HyperCube[TwoDim], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. IntSquare
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. IntSquareLike
  7. QueryShape
  8. HyperCube
  9. AnyRef
  10. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new IntSquare(cx: Int, cy: Int, extent: Int)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def area: Long

    Definition Classes
    IntSquareLike
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. final def bottom: Int

    The bottom is defined as the center y coordinate plus the extent minus one, it thus designed the 'last pixel' still inside the square.

    The bottom is defined as the center y coordinate plus the extent minus one, it thus designed the 'last pixel' still inside the square. This was changed from the previous definition of 'cy + extent' to be able to use the full 31 bit signed int space for a square without resorting to long conversion.

    Definition Classes
    IntSquareLike
  9. def canEqual(arg0: Any): Boolean

    Definition Classes
    IntSquare → Equals
  10. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. final def contains(quad: HyperCube): Boolean

    Checks whether a given square is fully contained in this square.

    Checks whether a given square is fully contained in this square. This is also the case if their bounds full match.

    Definition Classes
    IntSquareLikeHyperCube
  12. final def contains(point: PointLike): Boolean

    Queries the overlap of this shape with a given IntPoint2D p.

    Queries the overlap of this shape with a given IntPoint2D p. The point is considered to have a side length of 1!

    returns

    true if this shape contains or partly overlaps the given point

    Definition Classes
    IntSquareLikeQueryShapeHyperCube
  13. val cx: Int

    X coordinate of the square's center

    X coordinate of the square's center

    Definition Classes
    IntSquareIntSquareLike
  14. val cy: Int

    Y coordinate of the square's center

    Y coordinate of the square's center

    Definition Classes
    IntSquareIntSquareLike
  15. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Definition Classes
    IntSquare → Equals → AnyRef → Any
  17. val extent: Int

    The extent is the half side length of the square

    The extent is the half side length of the square

    Definition Classes
    IntSquareIntSquareLike
  18. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  19. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  20. final def greatestInteresting(a: HyperCube, b: PointLike): HyperCube

    Calculates the greatest interesting hyper-cube inside this hyper-cube which contains both hyper-cube a and point b, and they occupy distinct orthants.

    Calculates the greatest interesting hyper-cube inside this hyper-cube which contains both hyper-cube a and point b, and they occupy distinct orthants.

    Definition Classes
    IntSquareLikeHyperCube
  21. final def greatestInteresting(a: PointLike, b: PointLike): HyperCube

    Calculates the greatest interesting hyper-cube inside this hyper-cube which contains both points a and b, and they occupy distinct orthants.

    Calculates the greatest interesting hyper-cube inside this hyper-cube which contains both points a and b, and they occupy distinct orthants.

    Definition Classes
    IntSquareLikeHyperCube
  22. def hashCode(): Int

    Definition Classes
    IntSquare → AnyRef → Any
  23. final def indexOf(aq: HyperCube): Int

    Determines the quadrant index of another internal square aq.

    Determines the quadrant index of another internal square aq.

    returns

    the index of the quadrant (beginning at 0), or -1 if aq lies outside of this square.

    Definition Classes
    IntSquareLikeHyperCube
  24. final def indexOf(a: PointLike): Int

    Determines the quadrant index of a point a.

    Determines the quadrant index of a point a.

    returns

    the index of the quadrant (beginning at 0), or -1 if a lies outside of this square.

    Definition Classes
    IntSquareLikeHyperCube
  25. final def isAreaGreater(a: HyperCube, b: Long): Boolean

    Definition Classes
    IntSquareLikeQueryShape
  26. final def isAreaNonEmpty(area: Long): Boolean

    Definition Classes
    IntSquareLikeQueryShape
  27. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  28. final def left: Int

    Definition Classes
    IntSquareLike
  29. final def maxDistance(point: PointLike): Double

    Calculates the maximum distance to a point in the euclidean metric.

    Calculates the maximum distance to a point in the euclidean metric. This calls maxDistanceSq and then takes the square root.

    Definition Classes
    IntSquareLikeHyperCube
  30. final def maxDistanceSq(point: PointLike): Long

    Calculates the maximum squared distance to a point in the euclidean metric.

    Calculates the maximum squared distance to a point in the euclidean metric. This is the distance (squared) to the corner which is the furthest from the point, no matter if it lies within the square or not.

    Definition Classes
    IntSquareLike
  31. final def minDistance(point: PointLike): Double

    Calculates the minimum distance to a point in the euclidean metric.

    Calculates the minimum distance to a point in the euclidean metric. This calls minDistanceSq and then takes the square root.

    Definition Classes
    IntSquareLikeHyperCube
  32. final def minDistanceSq(point: PointLike): Long

    The squared (euclidean) distance of the closest of the square's corners or sides to the point, if the point is outside the square, or zero, if the point is contained

    The squared (euclidean) distance of the closest of the square's corners or sides to the point, if the point is outside the square, or zero, if the point is contained

    Definition Classes
    IntSquareLike
  33. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  34. final def notify(): Unit

    Definition Classes
    AnyRef
  35. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  36. final def orthant(idx: Int): HyperCube

    Definition Classes
    IntSquareLikeHyperCube
  37. final def overlapArea(q: HyperCube): Long

    Definition Classes
    IntSquareLikeQueryShape
  38. def productArity: Int

    Definition Classes
    IntSquare → Product
  39. def productElement(arg0: Int): Any

    Definition Classes
    IntSquare → Product
  40. def productIterator: Iterator[Any]

    Definition Classes
    Product
  41. def productPrefix: String

    Definition Classes
    IntSquare → Product
  42. final def right: Int

    The right is defined as the center x coordinate plus the extent minus one, it thus designed the 'last pixel' still inside the square.

    The right is defined as the center x coordinate plus the extent minus one, it thus designed the 'last pixel' still inside the square. This was changed from the previous definition of 'cx + extent' to be able to use the full 31 bit signed int space for a square without resorting to long conversion.

    Definition Classes
    IntSquareLike
  43. final def side: Int

    The side length is two times the extent.

    The side length is two times the extent. Note that this may overflow if the extent is greater than 0x3FFFFFFF.

    Definition Classes
    IntSquareLike
  44. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  45. def toString(): String

    Definition Classes
    IntSquare → AnyRef → Any
  46. final def top: Int

    Definition Classes
    IntSquareLike
  47. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  48. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  49. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def productElements: Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    (Since version 2.8.0) use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from IntSquareLike

Inherited from QueryShape[Long, TwoDim]

Inherited from HyperCube[TwoDim]

Inherited from AnyRef

Inherited from Any