sealed abstract class Ray[T] extends (T) => Boolean
A bounded subset of a continuous, infinite, and total-ordered values. A ray is composed of a
single bound and a direction. The ray may either point in the Lesser
direction, towards smaller
values, or in the Greater
direction, towards larger values. Thus, if the ray points in the
Greater
direction, it is bounded below, whereas a ray pointing in the Greater
direction is
bounded above. A ray's bound can potentially be unbounded, in which case the ray is equivalent to
a line.
- T
type of values contained in the continuous, infinite, total-ordered set which the ray operates on.
- Alphabetic
- By Inheritance
- Ray
- Function1
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def apply(point: T): Boolean
Tests if this ray contains the specified point.
Tests if this ray contains the specified point.
- Definition Classes
- Ray → Function1
- abstract def bound: Bound[T]
- abstract def encloses(other: Ray[T]): Boolean
Tests if this ray encloses the other.
Tests if this ray encloses the other. A ray encloses another if it contains all points contained by the other.
- abstract def intersects(other: Ray[T]): Boolean
Tests if this ray intersects the other.
Tests if this ray intersects the other. Rays intersect if they share any points in common. Said another way, rays intersect if they overlap.
- abstract def isSameDirection(other: Ray[T]): Boolean
- abstract def tangent: Option[Ray[T]]
Returns the ray tangent to this one, if such a ray exists.
- abstract def tangents(other: Ray[T]): Boolean
Tests if this ray is tangent to the other.
Tests if this ray is tangent to the other. Rays are tangent if they do not contain any points in common, but all points are contained by one of the rays.
Concrete 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
- def andThen[A](g: (Boolean) => A): (T) => A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def compose[A](g: (A) => T): (A) => Boolean
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- def connects(other: Ray[T]): Boolean
Tests if this ray is connected to the other.
Tests if this ray is connected to the other. Rays are connected if they intersect, or are tangent.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Function1 → AnyRef → Any
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated