/* 8010 */ sqDist = Distance.pointToSegment(pt, origin, end, iPnt, null);
/* */ }
/* */ else {
/* 8013 */ sqDist = Distance.pointToRay(pt, origin, direction, iPnt, null);
/* */ }
/* 8015 */ originToIpnt.sub(iPnt, origin);
/* 8016 */ double distance = originToIpnt.length();
/* 8017 */ double radius = Math.tan(cone.getSpreadAngle()) * distance;
/* 8018 */ if (sqDist <= radius * radius) {
/* 8019 */ dist[0] = distance;
/* 8020 */ freePoint3d(origin);