final case class LongSquare(cx: Long, cy: Long, extent: Long) extends LongSquareLike with Product with Serializable
- Alphabetic
- By Inheritance
- LongSquare
- Serializable
- Serializable
- Product
- Equals
- LongSquareLike
- QueryShape
- HyperCube
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new LongSquare(cx: Long, cy: Long, extent: Long)
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
area: BigInt
- Definition Classes
- LongSquareLike
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
final
def
bottom: Long
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
- LongSquareLike
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
contains(quad: LongSpace.TwoDim.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
- LongSquareLike → HyperCube
-
final
def
contains(point: LongSpace.TwoDim.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
- LongSquareLike → QueryShape → HyperCube
-
val
cx: Long
X coordinate of the square's center
X coordinate of the square's center
- Definition Classes
- LongSquare → LongSquareLike
-
val
cy: Long
Y coordinate of the square's center
Y coordinate of the square's center
- Definition Classes
- LongSquare → LongSquareLike
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
val
extent: Long
The extent is the half side length of the square
The extent is the half side length of the square
- Definition Classes
- LongSquare → LongSquareLike
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
greatestInteresting(a: LongSpace.TwoDim.HyperCube, b: LongSpace.TwoDim.PointLike): LongSpace.TwoDim.HyperCube
Calculates the greatest interesting hyper-cube inside this hyper-cube which contains both hyper-cube
a
and pointb
, and they occupy distinct orthants.Calculates the greatest interesting hyper-cube inside this hyper-cube which contains both hyper-cube
a
and pointb
, and they occupy distinct orthants.- Definition Classes
- LongSquareLike → HyperCube
-
final
def
greatestInteresting(a: LongSpace.TwoDim.PointLike, b: LongSpace.TwoDim.PointLike): LongSpace.TwoDim.HyperCube
Calculates the greatest interesting hyper-cube inside this hyper-cube which contains both points
a
andb
, and they occupy distinct orthants.Calculates the greatest interesting hyper-cube inside this hyper-cube which contains both points
a
andb
, and they occupy distinct orthants.- Definition Classes
- LongSquareLike → HyperCube
-
final
def
indexOf(aq: LongSpace.TwoDim.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
- LongSquareLike → HyperCube
-
final
def
indexOf(a: LongSpace.TwoDim.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
- LongSquareLike → HyperCube
-
final
def
isAreaGreater(a: LongSpace.TwoDim.HyperCube, b: BigInt): Boolean
- Definition Classes
- LongSquareLike → QueryShape
-
final
def
isAreaNonEmpty(area: BigInt): Boolean
- Definition Classes
- LongSquareLike → QueryShape
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
left: Long
- Definition Classes
- LongSquareLike
-
final
def
maxDistance(point: LongSpace.TwoDim.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
- LongSquareLike → HyperCube
-
final
def
maxDistanceSq(point: LongSpace.TwoDim.PointLike): BigInt
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
- LongSquareLike
-
final
def
minDistance(point: LongSpace.TwoDim.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
- LongSquareLike → HyperCube
-
final
def
minDistanceSq(point: LongSpace.TwoDim.PointLike): BigInt
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
- LongSquareLike
-
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()
-
final
def
orthant(idx: Int): LongSpace.TwoDim.HyperCube
- Definition Classes
- LongSquareLike → HyperCube
-
final
def
overlapArea(q: LongSpace.TwoDim.HyperCube): BigInt
- Definition Classes
- LongSquareLike → QueryShape
-
final
def
right: Long
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
- LongSquareLike
-
final
def
side: Long
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
.- Definition Classes
- LongSquareLike
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
top: Long
- Definition Classes
- LongSquareLike
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )