SegmentDistanceResult

data class SegmentDistanceResult(val closest1: Vec2, val closest2: Vec2, val fraction1: Float, val fraction2: Float, val distanceSquared: Float)

Result of a segment-to-segment distance query.

Parameters

closest1

The closest point on the first segment

closest2

The closest point on the second segment

fraction1

The barycentric coordinate on the first segment

fraction2

The barycentric coordinate on the second segment

distanceSquared

The squared distance between the closest points

Constructors

Link copied to clipboard
constructor(closest1: Vec2, closest2: Vec2, fraction1: Float, fraction2: Float, distanceSquared: Float)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard