H3D::SphereSensor::Set_SphereEvents Class Reference

The Set_SphereEvents field takes care of sending trackPoint_changed, rotation_changed, and offset events when they should be sent. More...

#include <H3D/SphereSensor.h>

Inheritance diagram for H3D::SphereSensor::Set_SphereEvents:

Inheritance graph

List of all members.

Public Member Functions

 Set_SphereEvents ()
 Constructor.

Protected Member Functions

virtual void update ()
 update the value of this field and set the fields mentioned above
int intersectSegmentSphere (Vec3f a1, Vec3f a2, H3DFloat &t, Vec3f &q)
 Intersects segment s = a1 + t(a2-a1) with sphere defined by center and radius (see below), if intersecting, returns t value of intersection and intersection point q.

Protected Attributes

bool new_radius
 If true a new radius will be defined.


Detailed Description

The Set_SphereEvents field takes care of sending trackPoint_changed, rotation_changed, and offset events when they should be sent.


Member Function Documentation

int SphereSensor::Set_SphereEvents::intersectSegmentSphere ( Vec3f  a1,
Vec3f  a2,
H3DFloat t,
Vec3f &  q 
) [protected]

Intersects segment s = a1 + t(a2-a1) with sphere defined by center and radius (see below), if intersecting, returns t value of intersection and intersection point q.

References H3DSqrt().

Referenced by update().


The documentation for this class was generated from the following files:

Generated on Fri Nov 7 10:31:02 2008 for H3D API by  doxygen 1.5.7