|
Blender
V2.59
|
#include <iostream>#include <map>#include <vector>#include <string>#include <sstream>#include <math.h>#include <string.h>#include <stdio.h>#include <stdlib.h>#include <float.h>Go to the source code of this file.
Classes | |
| class | ntlVector3Dim< Scalar > |
Defines | |
| #define | __FLT_MAX__ 3.402823466e+38f |
| #define | __DBL_MAX__ 1.7976931348623158e+308 |
| #define | M_PI 3.1415926536 |
| #define | M_E 2.7182818284 |
| #define | GFX_PRECISION 1 |
| #define | GFX_REAL_MAX __FLT_MAX__ |
| #define | VECTOR_EPSILON (1e-5f) |
| #define | HAVE_GFXTYPES |
| #define | VECTOR_TYPE ntlVector3Dim<Scalar> |
Typedefs | |
| typedef ntlVector3Dim< double > | ntlVec3d |
| typedef ntlVector3Dim< float > | ntlVec3f |
| typedef ntlVector3Dim< int > | ntlVec3i |
| typedef ntlVec3f | ntlColor |
| typedef float | gfxReal |
| typedef double | gfxDouble |
| typedef ntlVector3Dim< gfxReal > | ntlVec3Gfx |
Functions | |
| template<class Scalar > | |
| std::ostream & | operator<< (std::ostream &os, const ntlVector3Dim< Scalar > &i) |
| template<class Scalar > | |
| std::istream & | operator>> (std::istream &is, ntlVector3Dim< Scalar > &i) |
| template<class Scalar > | |
| Scalar | dot (const ntlVector3Dim< Scalar > &t, const ntlVector3Dim< Scalar > &v) |
| template<class Scalar > | |
| ntlVector3Dim< Scalar > | cross (const ntlVector3Dim< Scalar > &t, const ntlVector3Dim< Scalar > &v) |
| template<class T > | |
| ntlVec3d | vec2D (T v) |
| template<class T > | |
| ntlVec3f | vec2F (T v) |
| template<class T > | |
| ntlColor | vec2Col (T v) |
| template<class T > | |
| ntlVec3Gfx | vec2G (T v) |
| gfxReal | getVecEpsilon () |
| template<class Scalar > | |
| Scalar | norm (const VECTOR_TYPE &v) |
| template<class Scalar > | |
| Scalar | normNoSqrt (const VECTOR_TYPE &v) |
| template<class Scalar > | |
| VECTOR_TYPE | getNormalized (const VECTOR_TYPE &v) |
| template<class Scalar > | |
| Scalar | normalize (VECTOR_TYPE &v) |
| template<class Scalar > | |
| VECTOR_TYPE | reflectVector (const VECTOR_TYPE &t, const VECTOR_TYPE &n) |
| template<class Scalar > | |
| VECTOR_TYPE | refractVector (const VECTOR_TYPE &t, const VECTOR_TYPE &normal, Scalar nt, Scalar nair, int &refRefl) |
| template<class Scalar > | |
| bool | equal (const VECTOR_TYPE &v, const VECTOR_TYPE &c) |
| template<class Scalar > | |
| void | rgbToHsv (VECTOR_TYPE &V) |
| template<class Scalar > | |
| void | hsvToRgb (VECTOR_TYPE &V) |
Variables | |
| const char * | globVecFormatStr |
| global string for formatting vector output in utilities.cpp | |
Definition in file ntl_vector3dim.h.
| #define __DBL_MAX__ 1.7976931348623158e+308 |
Definition at line 93 of file ntl_vector3dim.h.
| #define __FLT_MAX__ 3.402823466e+38f |
Definition at line 86 of file ntl_vector3dim.h.
| #define GFX_PRECISION 1 |
Definition at line 827 of file ntl_vector3dim.h.
| #define GFX_REAL_MAX __FLT_MAX__ |
Definition at line 834 of file ntl_vector3dim.h.
Referenced by ntlTree::intersect(), ntlRay::intersectBackAABB(), ntlRay::intersectCompleteAABB(), ntlRay::intersectFrontAABB(), ntlRay::intersectTriangle(), ntlRay::intersectTriangleBack(), ntlRay::intersectTriangleFront(), ntlRay::intersectTriangleX(), ntlTree::intersectX(), and ntlRay::shade().
| #define HAVE_GFXTYPES |
Definition at line 862 of file ntl_vector3dim.h.
| #define M_E 2.7182818284 |
Definition at line 99 of file ntl_vector3dim.h.
| #define M_PI 3.1415926536 |
Definition at line 98 of file ntl_vector3dim.h.
| #define VECTOR_EPSILON (1e-5f) |
Definition at line 839 of file ntl_vector3dim.h.
Referenced by ntlMatrix4x4< Scalar >::decompose(), equal(), getNormalized(), getVecEpsilon(), norm(), and normalize().
| #define VECTOR_TYPE ntlVector3Dim<Scalar> |
Definition at line 871 of file ntl_vector3dim.h.
Referenced by getNormalized(), and reflectVector().
| typedef double gfxDouble |
Definition at line 851 of file ntl_vector3dim.h.
| typedef float gfxReal |
Definition at line 833 of file ntl_vector3dim.h.
Definition at line 798 of file ntl_vector3dim.h.
| typedef ntlVector3Dim<double> ntlVec3d |
Definition at line 789 of file ntl_vector3dim.h.
| typedef ntlVector3Dim<float> ntlVec3f |
Definition at line 792 of file ntl_vector3dim.h.
| typedef ntlVector3Dim<gfxReal> ntlVec3Gfx |
Definition at line 854 of file ntl_vector3dim.h.
| typedef ntlVector3Dim<int> ntlVec3i |
Definition at line 795 of file ntl_vector3dim.h.
| ntlVector3Dim<Scalar> cross | ( | const ntlVector3Dim< Scalar > & | t, |
| const ntlVector3Dim< Scalar > & | v | ||
| ) | [inline] |
Definition at line 689 of file ntl_vector3dim.h.
Referenced by applyModifier(), area_lamp_energy(), ATTRIBUTE_ALIGNED16(), ATTRIBUTE_ALIGNED64(), bevel_list_smooth(), bt_edge_plane(), ntlScene::buildScene(), btPrimitiveTriangle::buildTriPlane(), btTriangleShapeEx::buildTriPlane(), SphereTriangleDetector::collide(), btRigidBody::computeImpulseDenominator(), IsoSurface::computeNormals(), ntlMatrix4x4< Scalar >::decompose(), dupli_extrude_cursor(), get_strand_normal(), ParticleTracer::getTriangles(), LbmFsgrSolver::initializeSolverGrids(), ntlGeometryObject::initMovingPoints(), ntlGeometryObject::initMovingPointsAnim(), btRigidBody::internalGetVelocityInLocalPointObsolete(), ntlTree::intersect(), ntlRay::intersectTriangle(), ntlRay::intersectTriangleBack(), ntlRay::intersectTriangleFront(), ntlRay::intersectTriangleX(), ntlTree::intersectX(), lasso_inside(), mean_value_half_tan(), btVoronoiSimplexSolver::pointOutsideOfPlane(), btConnectivityProcessor::processTriangle(), btSoftBodyTriangleCallback::processTriangle(), DebugDrawcallback::processTriangle(), CcdPhysicsEnvironment::rayTest(), ntlWorld::renderScene(), btSequentialImpulseConstraintSolver::setupContactConstraint(), btSequentialImpulseConstraintSolver::setupFrictionConstraint(), shade_input_set_strand(), shade_one_light(), IsoSurface::smoothNormals(), IsoSurface::smoothSurface(), static_particle_strand(), and strand_eval_point().
| Scalar dot | ( | const ntlVector3Dim< Scalar > & | t, |
| const ntlVector3Dim< Scalar > & | v | ||
| ) | [inline] |
Definition at line 678 of file ntl_vector3dim.h.
Referenced by btPerturbedContactResult::addContactPoint(), ATTRIBUTE_ALIGNED16(), btNearestPointInLineSegment(), btTransformAabb(), btPrimitiveTriangle::buildTriPlane(), btTriangleShapeEx::buildTriPlane(), ntlMaterial::calculateFresnel(), ControlParticles::checkPointInside(), TNT::Cholesky_upper_factorization(), btVoronoiSimplexSolver::closestPtPointTetrahedron(), cloth_calc_spring_force(), collision_response(), column_vector_multiplication(), ntlMatrix4x4< Scalar >::decompose(), IsoSurface::diffuseVertexField(), do_material_tex(), dot(), dupli_extrude_cursor(), EdgeSeparation(), AnimationExporter::extract_transform_name(), FindIncidentEdge(), FindMaxSeparation(), frontface(), LbmSolverInterface::geoInitCheckPointInside(), btTriangleMeshShape::getAabb(), btCapsuleShape::getAabb(), btHeightfieldTerrainShape::getAabb(), ntlLightObject::getShadedColor(), btSphereBoxCollisionAlgorithm::getSphereDistance(), btSphereBoxCollisionAlgorithm::getSpherePenetration(), LbmFsgrSolver::handleObstacleParticle(), ntlGeometryObject::initMovingPoints(), LocalSupportVertexCallback::internalProcessTriangleIndex(), ntlRay::intersectTriangle(), ntlRay::intersectTriangleBack(), ntlRay::intersectTriangleFront(), ntlRay::intersectTriangleX(), isect_line_plane_v3(), lasso_inside(), Matrix_mul(), mean_value_half_tan(), MT_multTransposeRight(), KDL::VectorVel::Norm(), normal_projection_project_vertex(), btTransform::operator()(), operator*(), p_vec_angle(), pe_deflect_emitter(), btVoronoiSimplexSolver::pointOutsideOfPlane(), LbmFsgrSolver::prepareVisualization(), SupportVertexCallback::processTriangle(), ntlVector3Dim< Scalar >::projectNormalTo(), btSoftBody::PSolve_SContacts(), reflectVector(), refraction(), refractVector(), rotation_between_quats_to_quat(), seqbase_unique_name_recursive(), set_phong_threshold(), ntlRay::shade(), similar_face_select__internal(), IsoSurface::smoothNormals(), IsoSurface::smoothSurface(), btConeTwistConstraint::solveConstraintObsolete(), btTranslationalLimitMotor::solveLinearAxis(), strand_segment_recursive(), btMatrix3x3::timesTranspose(), GIM_BOX_BOX_TRANSFORM_CACHE::transform(), vec_magnitude_nosqrt(), Vector_angle(), Vector_dot(), Vector_getLength(), Vector_getLengthSquared(), Vector_mul(), Vector_project(), and Vector_setLength().
| bool equal | ( | const VECTOR_TYPE & | v, |
| const VECTOR_TYPE & | c | ||
| ) | [inline] |
Definition at line 999 of file ntl_vector3dim.h.
References ABS, and VECTOR_EPSILON.
Referenced by LbmSolverInterface::addCellToMarkedList(), compareface_overlaps(), ntlTree::ntlTree(), ntlWorld::renderScene(), and ntlRay::shade().
| VECTOR_TYPE getNormalized | ( | const VECTOR_TYPE & | v | ) | [inline] |
Definition at line 901 of file ntl_vector3dim.h.
References fabs(), sqrt(), VECTOR_EPSILON, and VECTOR_TYPE.
Referenced by ntlVector3Dim< Scalar >::getOrthogonalntlVector3Dim(), LbmFsgrSolver::initializeSolverGrids(), ntlGeometryObject::initMovingPoints(), ntlGeometryObject::initMovingPointsAnim(), LbmFsgrSolver::LbmFsgrSolver(), ntlWorld::renderScene(), and ntlRay::shade().
| gfxReal getVecEpsilon | ( | ) | [inline] |
Definition at line 860 of file ntl_vector3dim.h.
References VECTOR_EPSILON.
Referenced by ControlParticles::checkPointInside(), LbmSolverInterface::geoInitCheckPointInside(), ntlTree::intersect(), ntlRay::intersectBackAABB(), ntlRay::intersectCompleteAABB(), ntlRay::intersectFrontAABB(), ntlTree::intersectX(), ntlTree::ntlTree(), and ntlRay::shade().
| void hsvToRgb | ( | VECTOR_TYPE & | V | ) | [inline] |
Definition at line 1051 of file ntl_vector3dim.h.
| Scalar norm | ( | const VECTOR_TYPE & | v | ) | [inline] |
Definition at line 879 of file ntl_vector3dim.h.
References fabs(), sqrt(), and VECTOR_EPSILON.
Referenced by LbmFsgrSolver::adaptTimestep(), LbmFsgrSolver::advanceParticles(), axisProjection(), BLI_edgefill(), btShapeHull::buildHull(), ntlScene::buildScene(), C_Matrix_OrthoProjection(), C_Matrix_Scale(), btMinkowskiPenetrationDepthSolver::calcPenDepth(), ntlGeometryObjModel::calcTriangleDivs(), ntlGeometryObject::calcTriangleDivs(), Parametrizer::calculateAllMissingValues(), btConeTwistConstraint::computeConeLimitInfo(), IsoSurface::computeNormals(), MeanValueMeshCoords::computeWeights(), AUD_ButterworthFactory::createReader(), AUD_LowpassFactory::createReader(), AUD_HighpassFactory::createReader(), ntlMatrix4x4< Scalar >::decompose(), eff_calc_visibility(), Eigenhqr2(), LbmFsgrSolver::fineAdvance(), GetNormal(), btConeTwistConstraint::GetPointForAngle(), KDL::Rotation::GetXZRot(), ControlParticles::initFromMVCMesh(), LbmFsgrSolver::initGeometryFlags(), LbmFsgrSolver::initializeSolverGrids(), LbmFsgrSolver::initLevelOmegas(), LbmFsgrSolver::LbmFsgrSolver(), LbmFsgrSolver::mainLoop(), normalize(), ntlTriangle::ntlTriangle(), p_abf_compute_gradient(), p_chart_abf_solve(), planeProjection(), ntlWorld::renderScene(), IsoSurface::smoothNormals(), IsoSurface::smoothSurface(), iTaSC::WSDLSSolver::solve(), iTaSC::WDLSSolver::solve(), btSoftColliders::ClusterBase::SolveContact(), traceray(), IsoSurface::triangulate(), iTaSC::Armature::updateJoint(), Vector_normalize(), and view3d_align_axis_to_vector().
| Scalar normalize | ( | VECTOR_TYPE & | v | ) | [inline] |
Definition at line 921 of file ntl_vector3dim.h.
References fabs(), norm(), sqrt(), and VECTOR_EPSILON.
Referenced by ATTRIBUTE_ALIGNED16(), ntlScene::buildScene(), IsoSurface::computeNormals(), MeanValueMeshCoords::computeWeights(), KX_Dome::CreateMeshDome180(), KX_Dome::CreateMeshDome250(), KX_Dome::CreateMeshPanorama(), ntlMatrix4x4< Scalar >::decompose(), btSphereBoxCollisionAlgorithm::getSphereDistance(), btSphereBoxCollisionAlgorithm::getSpherePenetration(), ParticleTracer::getTriangles(), LbmFsgrSolver::handleObstacleParticle(), ntlLightObject::illuminatePoint(), ntlTree::intersect(), ntlTree::intersectX(), LbmFsgrSolver::mainLoop(), btSphereBoxCollisionAlgorithm::processCollision(), ntlBlenderDumper::renderScene(), ntlWorld::renderScene(), SimulationObject::setMousePos(), IsoSurface::smoothNormals(), IsoSurface::smoothSurface(), IsoSurface::triangulate(), and vol_get_phasefunc().
| Scalar normNoSqrt | ( | const VECTOR_TYPE & | v | ) | [inline] |
Definition at line 890 of file ntl_vector3dim.h.
Referenced by LbmFsgrSolver::advanceParticles(), ntlGeometryObjModel::calcTriangleDivs(), ntlGeometryObject::calcTriangleDivs(), channelFindMaxVd(), channelFindMaxVf(), IsoSurface::computeNormals(), IsoSurface::diffuseVertexField(), LbmSolverInterface::getGeoMaxMovementVelocity(), LbmFsgrSolver::handleObstacleParticle(), LbmFsgrSolver::initMovingObstacles(), ntlGeometryObject::initMovingPoints(), IsoSurface::smoothNormals(), and IsoSurface::smoothSurface().
| std::ostream& operator<< | ( | std::ostream & | os, |
| const ntlVector3Dim< Scalar > & | i | ||
| ) |
Definition at line 217 of file ntl_vector3dim.h.
References globVecFormatStr, and i.
| std::istream& operator>> | ( | std::istream & | is, |
| ntlVector3Dim< Scalar > & | i | ||
| ) |
Definition at line 234 of file ntl_vector3dim.h.
| VECTOR_TYPE reflectVector | ( | const VECTOR_TYPE & | t, |
| const VECTOR_TYPE & | n | ||
| ) | [inline] |
Definition at line 949 of file ntl_vector3dim.h.
References dot(), and VECTOR_TYPE.
Referenced by ntlRay::shade().
| VECTOR_TYPE refractVector | ( | const VECTOR_TYPE & | t, |
| const VECTOR_TYPE & | normal, | ||
| Scalar | nt, | ||
| Scalar | nair, | ||
| int & | refRefl | ||
| ) | [inline] |
Definition at line 962 of file ntl_vector3dim.h.
Referenced by ntlRay::shade().
| void rgbToHsv | ( | VECTOR_TYPE & | V | ) | [inline] |
Definition at line 1011 of file ntl_vector3dim.h.
| ntlColor vec2Col | ( | T | v | ) | [inline] |
Definition at line 803 of file ntl_vector3dim.h.
| ntlVec3d vec2D | ( | T | v | ) | [inline] |
Definition at line 801 of file ntl_vector3dim.h.
Referenced by MeanValueMeshCoords::computeWeights(), and ntlGeometryObject::initialize().
| ntlVec3f vec2F | ( | T | v | ) | [inline] |
Definition at line 802 of file ntl_vector3dim.h.
| ntlVec3Gfx vec2G | ( | T | v | ) | [inline] |
Definition at line 856 of file ntl_vector3dim.h.
Referenced by LbmFsgrSolver::advanceParticles(), LbmFsgrSolver::cpDebugDisplay(), LbmFsgrSolver::debugDisplayNode(), LbmFsgrSolver::handleObstacleParticle(), LbmFsgrSolver::initGeometryFlags(), ntlGeometryObject::initialize(), and LbmFsgrSolver::initializeSolverMemory().
| const char* globVecFormatStr |
global string for formatting vector output in utilities.cpp
Definition at line 82 of file utilities.cpp.
Referenced by operator<<(), and BasicVector::operator<<().