Lines Matching refs:center
30 Ball(const VectorType &c, double r) : center(c), radius(r) {} in Ball()
32 VectorType center; member
36 { return AlignedBox<double, Dim>(b.center.array() - b.radius, b.center.array() + b.radius); } in bounding_box()
55 if((b.center - p).squaredNorm() < SQR(b.radius)) in intersectObject()
61 …ype &r, const BallType &b) { ++calls; return r.squaredExteriorDistance(b.center) < SQR(b.radius); } in intersectVolumeObject()
62 …Type &b, const BoxType &r) { ++calls; return r.squaredExteriorDistance(b.center) < SQR(b.radius); } in intersectObjectVolume()
65 if((b1.center - b2.center).norm() < b1.radius + b2.radius) in intersectObjectObject()
72 if((b.center - v).squaredNorm() < SQR(b.radius)) in intersectObjectObject()
78 …double minimumOnObject(const BallType &b) { ++calls; return (std::max)(0., (b.center - p).squaredN… in minimumOnObject()
80 …onst BallType &b) { ++calls; return SQR((std::max)(0., r.exteriorDistance(b.center) - b.radius)); } in minimumOnVolumeObject()
81 …const BoxType &r) { ++calls; return SQR((std::max)(0., r.exteriorDistance(b.center) - b.radius)); } in minimumOnObjectVolume()
82 …e &b1, const BallType &b2){ ++calls; return SQR((std::max)(0., (b1.center - b2.center).norm() - b1… in minimumOnObjectObject()
84 …BallType &b, const VectorType &v){ ++calls; return SQR((std::max)(0., (b.center - v).norm() - b.ra… in minimumOnObjectObject()