Trait

de.sciss.lucre.geom

LongSquareLike

Related Doc: package geom

Permalink

trait LongSquareLike extends HyperCube[TwoDim] with QueryShape[BigInt, TwoDim]

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LongSquareLike
  2. QueryShape
  3. HyperCube
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def cx: Long

    Permalink

    X coordinate of the square's center

  2. abstract def cy: Long

    Permalink

    Y coordinate of the square's center

  3. abstract def extent: Long

    Permalink

    The extent is the half side length of the square

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def area: BigInt

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. final def bottom: Long

    Permalink

    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.

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def contains(quad: LongSpace.TwoDim.HyperCube): Boolean

    Permalink

    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
    LongSquareLikeHyperCube
  9. final def contains(point: LongSpace.TwoDim.PointLike): Boolean

    Permalink

    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
    LongSquareLikeQueryShapeHyperCube
  10. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def greatestInteresting(a: LongSpace.TwoDim.HyperCube, b: LongSpace.TwoDim.PointLike): LongSpace.TwoDim.HyperCube

    Permalink

    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
    LongSquareLikeHyperCube
  15. final def greatestInteresting(a: LongSpace.TwoDim.PointLike, b: LongSpace.TwoDim.PointLike): LongSpace.TwoDim.HyperCube

    Permalink

    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
    LongSquareLikeHyperCube
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def indexOf(aq: LongSpace.TwoDim.HyperCube): Int

    Permalink

    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
    LongSquareLikeHyperCube
  18. final def indexOf(a: LongSpace.TwoDim.PointLike): Int

    Permalink

    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
    LongSquareLikeHyperCube
  19. final def isAreaGreater(a: LongSpace.TwoDim.HyperCube, b: BigInt): Boolean

    Permalink
    Definition Classes
    LongSquareLikeQueryShape
  20. final def isAreaNonEmpty(area: BigInt): Boolean

    Permalink
    Definition Classes
    LongSquareLikeQueryShape
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. final def left: Long

    Permalink
  23. final def maxDistance(point: LongSpace.TwoDim.PointLike): Double

    Permalink

    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
    LongSquareLikeHyperCube
  24. final def maxDistanceSq(point: LongSpace.TwoDim.PointLike): BigInt

    Permalink

    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.

  25. final def minDistance(point: LongSpace.TwoDim.PointLike): Double

    Permalink

    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
    LongSquareLikeHyperCube
  26. final def minDistanceSq(point: LongSpace.TwoDim.PointLike): BigInt

    Permalink

    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

  27. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. final def orthant(idx: Int): LongSpace.TwoDim.HyperCube

    Permalink
    Definition Classes
    LongSquareLikeHyperCube
  31. final def overlapArea(q: LongSpace.TwoDim.HyperCube): BigInt

    Permalink
    Definition Classes
    LongSquareLikeQueryShape
  32. final def right: Long

    Permalink

    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.

  33. final def side: Long

    Permalink

    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 0x3FFFFFFFFFFFFFFF.

  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  35. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  36. final def top: Long

    Permalink
  37. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from QueryShape[BigInt, TwoDim]

Inherited from HyperCube[TwoDim]

Inherited from AnyRef

Inherited from Any

Ungrouped