Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
mathutils Namespace Referencea variety of handy mathematical functions, many of which are templated More...
Detailed Descriptiona variety of handy mathematical functions, many of which are templated Function Documentationconverts from degrees to radians Definition at line 79 of file mathutils.h.
converts from degrees to radians Definition at line 69 of file mathutils.h. Referenced by DualCoding::Pilot::SetOdometryMachine::TurnHead::doStart(), KoduInterpreter::PerceptualMultiplexor::FailureRecovery::ObjectManipRecovery::PrepareForItemRecovery::LocateLostObject::doStart(), Kodu::KoduAgent::generateGazePoints(), and Kodu::VisualBumpDetectionTask::getMapBuilderRequest().
euclidean distance of two points, see squareDistance() Definition at line 29 of file mathutils.h. euclidean distance of two points, see squareDistance() Definition at line 24 of file mathutils.h.
template<class num >
Clips n to a minimum of low or maximum of high. If low and high are inverted, high is returned. Definition at line 36 of file mathutils.h. Referenced by WaypointEngine::computeNewVelocity().
template<>
returns the log base 2 for a 'double' value Definition at line 64 of file mathutils.h. returns the log base 2 for a 'float' value Definition at line 59 of file mathutils.h.
template<class num >
Returns the log base 2 of a number. This template implementation does a bit shifting method appropriate for integers. Specializations are provided for float and double to use the 'real' log() Definition at line 46 of file mathutils.h.
template<class num >
Will set a to be between (-pi,pi) (inclusive), just like atan2(). This is only efficient if we expect that the angle is already close to the range... otherwise use fmod... See also Measures.h, this normalize is identical to the AngSignPi::normalize() Definition at line 92 of file mathutils.h. Referenced by Waypoint::apply(), WaypointEngine::computeCurrentPosition(), WaypointEngine::computeIdeal(), and WaypointEngine::computeNewVelocity(). converts from radians to degrees Definition at line 84 of file mathutils.h.
converts from radians to degrees Definition at line 74 of file mathutils.h. Referenced by KoduInterpreter::PerceptualMultiplexor::FailureRecovery::ObjectManipRecovery::PrepareForItemRecovery::FaceTarget::doStart(), and KoduInterpreter::PerceptualMultiplexor::FailureRecovery::ObjectManipRecovery::PrepareForItemRecovery::LocateLostObject::doStart().
template<class num >
Chooses a number in the range [min,max) (exclusive upper bound). Definition at line 145 of file mathutils.h.
Chooses a number in the range [min,max) (exclusive upper bound). Definition at line 140 of file mathutils.h. Chooses a number in the range [min,max) (exclusive upper bound). Definition at line 136 of file mathutils.h. Referenced by weightedPick().
template<class C >
Pass a collection of std::pair<value,weight> (map, vector, etc.), returns a value based on a weighted sample. Throws an exception if the collection is empty; if all weights are zero, performs a uniform sampling. Definition at line 154 of file mathutils.h. |
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:24 2016 by Doxygen 1.6.3 |