21 _a(LPoint3(0.0, 0.0, 0.0)),
22 _b(LPoint3(0.0, 0.0, 0.0))
41 PN_stdfloat bx, PN_stdfloat by, PN_stdfloat bz) :
42 _a(ax, ay, az), _b(bx, by, bz)
61INLINE
void CollisionSegment::
62set_point_a(
const LPoint3 &a) {
64 mark_internal_bounds_stale();
74INLINE
void CollisionSegment::
75set_point_a(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z) {
76 set_point_a(LPoint3(x, y, z));
82INLINE
const LPoint3 &CollisionSegment::
90INLINE
void CollisionSegment::
91set_point_b(
const LPoint3 &b) {
93 mark_internal_bounds_stale();
101INLINE
void CollisionSegment::
102set_point_b(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z) {
103 set_point_b(LPoint3(x, y, z));
109INLINE
const LPoint3 &CollisionSegment::
A finite line segment, with two specific endpoints but no thickness.
bool set_from_lens(LensNode *camera, const LPoint2 &point)
Accepts a LensNode and a 2-d point in the range [-1,1].
CollisionSegment()
Creates an invalid segment.
The abstract base class for all things that can collide with other things in the world,...
A node that contains a Lens.