Skip to content

Function: clipSegmentToLine()

clipSegmentToLine(vOut, vIn, normal, offset, vertexIndexA): number

Clipping for contact manifolds. Sutherland-Hodgman clipping.

Parameters

vOut

ClipVertex[]

vIn

ClipVertex[]

normal

Vec2Value

offset

number

vertexIndexA

number

Returns

number