private angle ( |
||
from | ||
to | ||
Résultat | float |
public void setFusedData(bool shouldFuseBottom, ref Segment segment) { // store the angle off for later. For extreme angles we add extra verts to smooth the joint angle = Vector2Ext.angle(segment.point.position - point.position, nextPoint.position - point.position); this.shouldFuseBottom = shouldFuseBottom; if (shouldFuseBottom) { hasFusedPoint = ShapeCollisions.lineToLine(segment.bl, segment.br, bl, br, out fusedPoint); } else { hasFusedPoint = ShapeCollisions.lineToLine(segment.tl, segment.tr, tl, tr, out fusedPoint); } }