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)
61 INLINE
void CollisionSegment::
62 set_point_a(
const LPoint3 &a) {
64 mark_internal_bounds_stale();
74 INLINE
void CollisionSegment::
75 set_point_a(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z) {
76 set_point_a(LPoint3(x, y, z));
82 INLINE
const LPoint3 &CollisionSegment::
90 INLINE
void CollisionSegment::
91 set_point_b(
const LPoint3 &b) {
93 mark_internal_bounds_stale();
101 INLINE
void CollisionSegment::
102 set_point_b(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z) {
103 set_point_b(LPoint3(x, y, z));
109 INLINE
const LPoint3 &CollisionSegment::
110 get_point_b()
const {
bool set_from_lens(LensNode *camera, const LPoint2 &point)
Accepts a LensNode and a 2-d point in the range [-1,1].
The abstract base class for all things that can collide with other things in the world,...
A node that contains a Lens.
CollisionSegment()
Creates an invalid segment.
A finite line segment, with two specific endpoints but no thickness.