Component2D
interface Component2D
2D Geometry object that supports spatial relationships with bounding boxes, triangles and points.
Types
Functions
Link copied to clipboard
Link copied to clipboard
open fun containsTriangle(aX: Double, aY: Double, bX: Double, bY: Double, cX: Double, cY: Double): Boolean
abstract fun containsTriangle(minX: Double, maxX: Double, minY: Double, maxY: Double, aX: Double, aY: Double, bX: Double, bY: Double, cX: Double, cY: Double): Boolean
return true if this component2D contains the provided triangle *
Link copied to clipboard
Link copied to clipboard
open fun intersectsTriangle(aX: Double, aY: Double, bX: Double, bY: Double, cX: Double, cY: Double): Boolean
abstract fun intersectsTriangle(minX: Double, maxX: Double, minY: Double, maxY: Double, aX: Double, aY: Double, bX: Double, bY: Double, cX: Double, cY: Double): Boolean
return true if this component2D intersects the provided triangle *
Link copied to clipboard
open fun withinLine(aX: Double, aY: Double, ab: Boolean, bX: Double, bY: Double): Component2D.WithinRelation
Compute the within relation of this component2D with a triangle *
abstract fun withinLine(minX: Double, maxX: Double, minY: Double, maxY: Double, aX: Double, aY: Double, ab: Boolean, bX: Double, bY: Double): Component2D.WithinRelation
Compute the within relation of this component2D with a line *
Link copied to clipboard
Compute the within relation of this component2D with a point *
Link copied to clipboard
open fun withinTriangle(aX: Double, aY: Double, ab: Boolean, bX: Double, bY: Double, bc: Boolean, cX: Double, cY: Double, ca: Boolean): Component2D.WithinRelation
abstract fun withinTriangle(minX: Double, maxX: Double, minY: Double, maxY: Double, aX: Double, aY: Double, ab: Boolean, bX: Double, bY: Double, bc: Boolean, cX: Double, cY: Double, ca: Boolean): Component2D.WithinRelation
Compute the within relation of this component2D with a triangle *