Searched refs:perpDist (Results 1 – 8 of 8) sorted by relevance
431 float perpDist; in BoidsAngle() local443 if (perpDist > 50000) in BoidsAngle()446 if (perpDist <= as->fish[i].size / 2) in BoidsAngle()447 perpDist = as->fish[i].size / 2; in BoidsAngle()450 if (perpDist <= as->fish[i].size) in BoidsAngle()459 perpDist = as->fish[i].size / 2; in BoidsAngle()461 if (perpDist <= as->fish[i].size) in BoidsAngle()463 Z -= factor / perpDist; in BoidsAngle()467 perpDist = as->fish[i].size / 2; in BoidsAngle()469 if (perpDist <= as->fish[i].size) in BoidsAngle()[all …]
62 float perpDist = (as->sideDistance - bubble->size); in BubblePilot() local96 directDist = perpDist / cosAng; in BubblePilot()
102 guardPos = RandomAway(guardPos, self.perpDist, false, self.perpendicular)150 self.perpDist = dist153 self.perpDist = nil
320 const double perpDist = lightDir.Dot(b2pos); in CalcShadows() local322 if (perpDist <= 0 || perpDist > bLightPos.Length()) in CalcShadows()336 const double lrad = (lightRadius / bLightPos.Length()) * perpDist / bRadius; in CalcShadows()341 const vector3d projectedCentre = (b2pos - perpDist * lightDir) / bRadius; in CalcShadows()
56 float dot, perpDist; in ZLineToSphere() local65 if((perpDist < _0 ? -perpDist : perpDist) > radius) in ZLineToSphere()130 radial = radius * radius - perpDist * perpDist; in ZLineToSphere()208 perpDist = intra0 * perpAxis0; in LineToSphere()215 if((perpDist < _0 ? -perpDist : perpDist) > radius) in LineToSphere()283 radial = radius * radius - perpDist * perpDist; in LineToSphere()367 if(fabs(perpDist) > radius) { in ZLineToSphereCapped()469 radial = radius * radius - perpDist * perpDist; in ZLineToSphereCapped()586 perpDist = dot_product3f(intra, perpAxis); in LineToSphereCapped()590 if(fabs(perpDist) > radius) { in LineToSphereCapped()[all …]
149 const float perpDist = perpendicularDistanceTo(position); in doGetPerspectiveScalingFactor() local150 return perpDist / viewportFrustumDistance(); in doGetPerspectiveScalingFactor()
628 const double perpDist = lane->getShape().distance2D(pos, false); in moveToXY() local629 if (perpDist != GeomHelper::INVALID_OFFSET) { in moveToXY()630 lanePosLat = perpDist; in moveToXY()642 if (tmp.distance2D(pos) > perpDist) { in moveToXY()
1179 const double perpDist = lane->getShape().distance2D(pos, false);1180 if (perpDist != GeomHelper::INVALID_OFFSET) {1181 lanePosLat = perpDist;1193 if (tmp.distance2D(pos) > perpDist) {