object CGAlgorithmsDD
Implements basic computational geometry algorithms using {link DD} arithmetic.
- Alphabetic
- By Inheritance
- CGAlgorithmsDD
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- 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 equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def intersection(p1: Coordinate, p2: Coordinate, q1: Coordinate, q2: Coordinate): Coordinate
Computes an intersection point between two lines using DD arithmetic.
Computes an intersection point between two lines using DD arithmetic. If the lines are parallel (either identical or separate) a null value is returned.
- p1
an endpoint of line segment 1
- p2
an endpoint of line segment 1
- q1
an endpoint of line segment 2
- q2
an endpoint of line segment 2 return an intersection point if one exists, or null if the lines are parallel
- 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()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def orientationIndex(p1: Coordinate, p2: Coordinate, q: Coordinate): Int
Returns the index of the direction of the point
qrelative to a vector specified byp1-p2.Returns the index of the direction of the point
qrelative to a vector specified byp1-p2.- p1
the origin point of the vector
- p2
the final point of the vector
- q
the point to compute the direction to return 1 if q is counter-clockwise (left) from p1-p2 return -1 if q is clockwise (right) from p1-p2 return 0 if q is collinear with p1-p2
- def signOfDet2x2(dx1: Double, dy1: Double, dx2: Double, dy2: Double): Int
- def signOfDet2x2(x1: DD, y1: DD, x2: DD, y2: DD): Int
Computes the sign of the determinant of the 2x2 matrix with the given entries.
Computes the sign of the determinant of the 2x2 matrix with the given entries.
return -1 if the determinant is negative, return 1 if the determinant is positive, return 0 if the determinant is 0.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()