/dports/games/gtkradiant/GPL/GtkRadiant/tools/quake3/q3data/ |
H A D | p3dlib.c | 68 memset( &p3d, 0, sizeof( p3d ) ); in P3DLoad() 72 p3d.curpos = p3d.buffer = malloc( p3d.len ); in P3DLoad() 74 if ( fread( p3d.buffer, p3d.len, 1, fp ) != 1 ) in P3DLoad() 127 if ( ( p3d.curpos - p3d.buffer ) == p3d.len ) in P3DGetToken() 131 while ( ( ( p3d.curpos - p3d.buffer ) < p3d.len ) && in P3DGetToken() 134 p3d.curpos++; in P3DGetToken() 137 while ( ( p3d.curpos - p3d.buffer ) < p3d.len ) in P3DGetToken() 230 p3d.shaders[p3d.numPairs][k] = '/'; in P3DProcess() 234 p3d.shaders[p3d.numPairs][k] = s_token[j]; in P3DProcess() 239 p3d.shaders[p3d.numPairs][k] = 0; in P3DProcess() [all …]
|
/dports/games/netradiant/netradiant-20150621-src/tools/quake3/q3data/ |
H A D | p3dlib.c | 68 memset( &p3d, 0, sizeof( p3d ) ); in P3DLoad() 72 p3d.curpos = p3d.buffer = malloc( p3d.len ); in P3DLoad() 74 if ( fread( p3d.buffer, p3d.len, 1, fp ) != 1 ) { in P3DLoad() 124 if ( ( p3d.curpos - p3d.buffer ) == p3d.len ) { in P3DGetToken() 129 while ( ( ( p3d.curpos - p3d.buffer ) < p3d.len ) && in P3DGetToken() 132 p3d.curpos++; in P3DGetToken() 135 while ( ( p3d.curpos - p3d.buffer ) < p3d.len ) in P3DGetToken() 223 p3d.shaders[p3d.numPairs][k] = '/'; in P3DProcess() 227 p3d.shaders[p3d.numPairs][k] = s_token[j]; in P3DProcess() 232 p3d.shaders[p3d.numPairs][k] = 0; in P3DProcess() [all …]
|
/dports/science/nwchem/nwchem-7b21660b82ebd85ef659f6fba7e1e73433b0bd0a/src/tce/ccsd/ |
H A D | ccsd_kernels.F | 4 subroutine t2_p8(h1d,h2d,p3d,p4d,p5d,p6d, argument 7 integer h1d,h2d,p3d,p4d,p5d,p6d 10 double precision v2sub(p6d,p5d,p4d,p3d) 11 double precision r2sub(h2d,h1d,p4d,p3d) 17 do p3=1,p3d 40 do p3=1,p3d 64 subroutine t2_p8_x(h1d,h2d,p3d,p4d,p5d,p6d, argument 67 integer h1d,h2d,p3d,p4d,p5d,p6d 70 double precision v2sub(p6d,p5d,p4d,p3d) 71 double precision r2sub(h2d,h1d,p4d,p3d) [all …]
|
/dports/science/nwchem-data/nwchem-7.0.2-release/src/tce/ccsd/ |
H A D | ccsd_kernels.F | 4 subroutine t2_p8(h1d,h2d,p3d,p4d,p5d,p6d, argument 7 integer h1d,h2d,p3d,p4d,p5d,p6d 10 double precision v2sub(p6d,p5d,p4d,p3d) 11 double precision r2sub(h2d,h1d,p4d,p3d) 17 do p3=1,p3d 40 do p3=1,p3d 64 subroutine t2_p8_x(h1d,h2d,p3d,p4d,p5d,p6d, argument 67 integer h1d,h2d,p3d,p4d,p5d,p6d 70 double precision v2sub(p6d,p5d,p4d,p3d) 71 double precision r2sub(h2d,h1d,p4d,p3d) [all …]
|
/dports/math/vtk8/VTK-8.2.0/Filters/Core/Testing/Cxx/ |
H A D | TestCutter.cxx | 44 vtkSmartPointer<vtkPlane> p3d = vtkSmartPointer<vtkPlane>::New(); in TestStructured() local 45 p3d->SetOrigin(-1.5,-1.5,-1.5); in TestStructured() 46 p3d->SetNormal(1,1,1); in TestStructured() 48 cutter->SetCutFunction(p3d); in TestStructured() 81 vtkSmartPointer<vtkPlane> p3d = vtkSmartPointer<vtkPlane>::New(); in TestUnstructured() local 82 p3d->SetOrigin(-1.5,-1.5,-1.5); in TestUnstructured() 83 p3d->SetNormal(1,1,1); in TestUnstructured() 85 cutter->SetCutFunction(p3d); in TestUnstructured()
|
/dports/math/vtk9/VTK-9.1.0/Filters/Core/Testing/Cxx/ |
H A D | TestCutter.cxx | 44 vtkSmartPointer<vtkPlane> p3d = vtkSmartPointer<vtkPlane>::New(); in TestStructured() local 45 p3d->SetOrigin(-1.5, -1.5, -1.5); in TestStructured() 46 p3d->SetNormal(1, 1, 1); in TestStructured() 48 cutter->SetCutFunction(p3d); in TestStructured() 83 vtkSmartPointer<vtkPlane> p3d = vtkSmartPointer<vtkPlane>::New(); in TestUnstructured() local 84 p3d->SetOrigin(-1.5, -1.5, -1.5); in TestUnstructured() 85 p3d->SetNormal(1, 1, 1); in TestUnstructured() 87 cutter->SetCutFunction(p3d); in TestUnstructured()
|
/dports/math/vtk6/VTK-6.2.0/Filters/Core/Testing/Cxx/ |
H A D | TestCutter.cxx | 44 vtkSmartPointer<vtkPlane> p3d = vtkSmartPointer<vtkPlane>::New(); in TestStructured() local 45 p3d->SetOrigin(-1.5,-1.5,-1.5); in TestStructured() 46 p3d->SetNormal(1,1,1); in TestStructured() 48 cutter->SetCutFunction(p3d); in TestStructured() 81 vtkSmartPointer<vtkPlane> p3d = vtkSmartPointer<vtkPlane>::New(); in TestUnstructured() local 82 p3d->SetOrigin(-1.5,-1.5,-1.5); in TestUnstructured() 83 p3d->SetNormal(1,1,1); in TestUnstructured() 85 cutter->SetCutFunction(p3d); in TestUnstructured()
|
/dports/devel/boost-docs/boost_1_72_0/libs/geometry/test/strategies/ |
H A D | matrix_transformer.cpp | 28 point_3d p3d; in test_all() local 61 bg::transform(p4d, p3d, trans43); in test_all() 63 BOOST_CHECK_CLOSE(double(bg::get<0>(p3d)), -2.0, 0.001); in test_all() 64 BOOST_CHECK_CLOSE(double(bg::get<1>(p3d)), 3.0, 0.001); in test_all() 65 BOOST_CHECK_CLOSE(double(bg::get<2>(p3d)), 2.0, 0.001); in test_all() 71 bg::transform(p3d, p3d, trans33); in test_all() 73 BOOST_CHECK_CLOSE(double(bg::get<0>(p3d)), -2.0, 0.001); in test_all() 74 BOOST_CHECK_CLOSE(double(bg::get<1>(p3d)), 2.0, 0.001); in test_all() 75 BOOST_CHECK_CLOSE(double(bg::get<2>(p3d)), 3.0, 0.001); in test_all() 83 bg::transform(p3d, p2d, trans32); in test_all()
|
/dports/devel/boost-python-libs/boost_1_72_0/libs/geometry/test/strategies/ |
H A D | matrix_transformer.cpp | 28 point_3d p3d; in test_all() local 61 bg::transform(p4d, p3d, trans43); in test_all() 63 BOOST_CHECK_CLOSE(double(bg::get<0>(p3d)), -2.0, 0.001); in test_all() 64 BOOST_CHECK_CLOSE(double(bg::get<1>(p3d)), 3.0, 0.001); in test_all() 65 BOOST_CHECK_CLOSE(double(bg::get<2>(p3d)), 2.0, 0.001); in test_all() 71 bg::transform(p3d, p3d, trans33); in test_all() 73 BOOST_CHECK_CLOSE(double(bg::get<0>(p3d)), -2.0, 0.001); in test_all() 74 BOOST_CHECK_CLOSE(double(bg::get<1>(p3d)), 2.0, 0.001); in test_all() 75 BOOST_CHECK_CLOSE(double(bg::get<2>(p3d)), 3.0, 0.001); in test_all() 83 bg::transform(p3d, p2d, trans32); in test_all()
|
/dports/devel/boost-libs/boost_1_72_0/libs/geometry/test/strategies/ |
H A D | matrix_transformer.cpp | 28 point_3d p3d; in test_all() local 61 bg::transform(p4d, p3d, trans43); in test_all() 63 BOOST_CHECK_CLOSE(double(bg::get<0>(p3d)), -2.0, 0.001); in test_all() 64 BOOST_CHECK_CLOSE(double(bg::get<1>(p3d)), 3.0, 0.001); in test_all() 65 BOOST_CHECK_CLOSE(double(bg::get<2>(p3d)), 2.0, 0.001); in test_all() 71 bg::transform(p3d, p3d, trans33); in test_all() 73 BOOST_CHECK_CLOSE(double(bg::get<0>(p3d)), -2.0, 0.001); in test_all() 74 BOOST_CHECK_CLOSE(double(bg::get<1>(p3d)), 2.0, 0.001); in test_all() 75 BOOST_CHECK_CLOSE(double(bg::get<2>(p3d)), 3.0, 0.001); in test_all() 83 bg::transform(p3d, p2d, trans32); in test_all()
|
/dports/devel/hyperscan/boost_1_75_0/libs/geometry/test/strategies/ |
H A D | matrix_transformer.cpp | 28 point_3d p3d; in test_all() local 61 bg::transform(p4d, p3d, trans43); in test_all() 63 BOOST_CHECK_CLOSE(double(bg::get<0>(p3d)), -2.0, 0.001); in test_all() 64 BOOST_CHECK_CLOSE(double(bg::get<1>(p3d)), 3.0, 0.001); in test_all() 65 BOOST_CHECK_CLOSE(double(bg::get<2>(p3d)), 2.0, 0.001); in test_all() 71 bg::transform(p3d, p3d, trans33); in test_all() 73 BOOST_CHECK_CLOSE(double(bg::get<0>(p3d)), -2.0, 0.001); in test_all() 74 BOOST_CHECK_CLOSE(double(bg::get<1>(p3d)), 2.0, 0.001); in test_all() 75 BOOST_CHECK_CLOSE(double(bg::get<2>(p3d)), 3.0, 0.001); in test_all() 83 bg::transform(p3d, p2d, trans32); in test_all()
|
/dports/cad/opencascade/opencascade-7.6.0/src/ChFi3d/ |
H A D | ChFi3d_ChBuilder_C3.cxx | 379 gp_Pnt p3d[4], PSom; in PerformThreeCorner() local 432 Standard_Real DistMin = (p3d[3]).Distance(p3d[fin]); in PerformThreeCorner() 433 Standard_Real DistTmp = (p3d[pivot]).Distance(p3d[deb]); in PerformThreeCorner() 434 Standard_Real DistDebFin = (p3d[pivot]).Distance(p3d[3]); in PerformThreeCorner() 445 p3d[pivot] = PSom; in PerformThreeCorner() 454 gp_Vec v1(p3d[pivot],p3d[deb]); in PerformThreeCorner() 455 gp_Vec v2(p3d[pivot],p3d[fin]); in PerformThreeCorner() 464 c1plan = CoPlanar(p3d[0], p3d[1], p3d[2], p3d[3]); in PerformThreeCorner() 474 gp_Dir xdir = gp_Dir(gp_Vec(p3d[fin],p3d[deb])); in PerformThreeCorner() 501 p3d[fin],p2d[fin],p3d[deb],p2d[deb], in PerformThreeCorner() [all …]
|
/dports/misc/vxl/vxl-3.3.2/contrib/brl/bbas/bvgl/ |
H A D | bvgl_spline_region_3d.hxx | 15 p3d = origin_+ plane_vec; in plane_to_world() 21 Type len = (p3d-cp).length(); in world_to_plane() 143 vgl_point_3d<Type> p3d; in bvgl_spline_region_3d() local 145 knots_3d.push_back(p3d); in bvgl_spline_region_3d() 293 vgl_point_3d<Type> p3d; in inverse_vector_field() local 296 inv = p3d - p; in inverse_vector_field() 322 vgl_point_3d<Type> p3d; in vector_field() local 325 vf = (p3d-p) + tv; in vector_field() 361 vgl_point_3d<Type> p3d; in scale() local 364 scaled_pts.push_back(p3d + tv); in scale() [all …]
|
/dports/games/gltron/gltron-0.70/src/audio/ |
H A D | sound_glue.cpp | 71 Sound::Source3D *p3d; in Audio_Idle() local 73 p3d = players[i]; in Audio_Idle() 76 p3d->_location = Vector3(x, y, 0); in Audio_Idle() 87 p3d->_velocity = Vector3(V * vx, V * vy, 0); in Audio_Idle() 89 p3d->_velocity = Vector3(V * dirsX[p->data->dir], in Audio_Idle() 95 ( (Sound::SourceEngine*) p3d )->_speedShift = 1.2f; in Audio_Idle() 97 ( (Sound::SourceEngine*) p3d )->_speedShift = 1.0f; in Audio_Idle() 99 ( (Sound::SourceEngine*) p3d )->_pitchShift = in Audio_Idle() 109 ( (Sound::SourceEngine*) p3d )->_speedShift = speedShift; in Audio_Idle() 112 ( (Sound::SourceEngine*) p3d )->_speedShift = 0.3; in Audio_Idle() [all …]
|
/dports/graphics/opencv/opencv-4.5.3/modules/calib3d/test/ |
H A D | test_solvepnp_ransac.cpp | 1249 vector<Point3f> p3d; in TEST() local 1287 vector<Point3d> p3d; in TEST() local 1321 vector<Point3f> p3d; in TEST() local 1358 vector<Point3d> p3d; in TEST() local 1394 vector<Point3f> p3d; in TEST() local 1466 p3d = p3d_; in TEST() 1572 vector<Point3d> p3d; in TEST() local 1621 vector<Point3f> p3d; in TEST() local 1674 vector<Point3d> p3d; in TEST() local 1741 vector<Point3f> p3d; in TEST() local [all …]
|
/dports/misc/vxl/vxl-3.3.2/contrib/gel/vsol/examples/ |
H A D | vsol_point_example.cxx | 42 vsol_point_3d_sptr p3d = new vsol_point_3d(5.0,10.0,15.0); in main() local 44 std::cout << p3d->x() << " " << p3d->y() << " " << p3d->z() << std::endl; in main() 58 vsol_point_3d_sptr mid_3d = p3d_1->middle(*(p3d.ptr())); in main() 62 dist=p3d_1->distance(p3d); in main()
|
/dports/misc/vxl/vxl-3.3.2/contrib/brl/bbas/bwm/reg/ |
H A D | bwm_reg_utils.cxx | 26 vgl_point_3d<double> p3d; in back_project_edges() local 27 if (!vpgl_backproject::bproj_plane(rcam, ip, pl, initial_guess, p3d)) in back_project_edges() 29 dc3d->add_vertex(new vsol_point_3d(p3d)); in back_project_edges() 50 vgl_point_3d<double> p3d = p->get_p(); in project_edges() local 51 vgl_point_2d<double> ip = rcam.project(p3d); in project_edges()
|
/dports/cad/gmsh/gmsh-4.9.2-source/contrib/Netgen/libsrc/csg/ |
H A D | spline3d.cpp | 256 void splinetube :: ToPlane (const Point<3> & p3d, Point<2> & pplain, double h, in ToPlane() argument 260 v(0) = r * atan2 (ey * (p3d-cp), ex * (p3d-cp)); in ToPlane() 261 v(1) = ez * (p3d - cp); in ToPlane() 270 void splinetube :: FromPlane (const Point<2> & pplain, Point<3> & p3d, double h) const in FromPlane() argument 277 p3d = p1 + v(0) * ey + v(1) * ez; in FromPlane() 279 Project (p3d); in FromPlane() 282 void splinetube :: Project (Point<3> & p3d) const in Project() 286 hp = p3d; in Project() 289 p3d = hp + (r / Dist(p3d, hp)) * (p3d - hp); in Project()
|
/dports/cad/netgen/netgen-6.2.2105/libsrc/csg/ |
H A D | spline3d.cpp | 256 void splinetube :: ToPlane (const Point<3> & p3d, Point<2> & pplain, double h, in ToPlane() argument 260 v(0) = r * atan2 (ey * (p3d-cp), ex * (p3d-cp)); in ToPlane() 261 v(1) = ez * (p3d - cp); in ToPlane() 270 void splinetube :: FromPlane (const Point<2> & pplain, Point<3> & p3d, double h) const in FromPlane() argument 277 p3d = p1 + v(0) * ey + v(1) * ez; in FromPlane() 279 Project (p3d); in FromPlane() 282 void splinetube :: Project (Point<3> & p3d) const in Project() 286 hp = p3d; in Project() 289 p3d = hp + (r / Dist(p3d, hp)) * (p3d - hp); in Project()
|
/dports/science/elmerfem/elmerfem-release-9.0/ElmerGUI/netgen/libsrc/csg/ |
H A D | spline3d.cpp | 256 void splinetube :: ToPlane (const Point<3> & p3d, Point<2> & pplain, double h, in ToPlane() argument 260 v(0) = r * atan2 (ey * (p3d-cp), ex * (p3d-cp)); in ToPlane() 261 v(1) = ez * (p3d - cp); in ToPlane() 270 void splinetube :: FromPlane (const Point<2> & pplain, Point<3> & p3d, double h) const in FromPlane() argument 277 p3d = p1 + v(0) * ey + v(1) * ez; in FromPlane() 279 Project (p3d); in FromPlane() 282 void splinetube :: Project (Point<3> & p3d) const in Project() 286 hp = p3d; in Project() 289 p3d = hp + (r / Dist(p3d, hp)) * (p3d - hp); in Project()
|
/dports/misc/vxl/vxl-3.3.2/contrib/brl/bbas/bpgl/acal/ |
H A D | acal_planar_feature_matcher.cxx | 83 vgl_point_3d<double> const& p3d, in backproject_patch() argument 96 vgl_point_3d<double> p(p3d.x() + dx, p3d.y() + dy, p3d.z()); in backproject_patch() 124 const vgl_point_3d<double>& p3d = this->track_3d_pts_[i]; in generate_image_patches() local 136 this->backproject_patch(img, cam, p3d, patch); in generate_image_patches() 205 vil_image_view<vxl_byte> const& ref_patch, vgl_point_3d<double> const& p3d, in local_maximum() argument 215 this->backproject_patch(img, cam, p3d, mpatch, u0+du, v0+dv); in local_maximum() 255 const vgl_point_3d<double>& p3d = this->track_3d_pts_[i]; in set_match_translations() local 256 vgl_point_2d<double> p2d = cam.project(p3d); in set_match_translations() 259 …std::cout << "for cam " << cam_id << " track point " << p3d << " projects outside of image" << std… in set_match_translations() 274 …if (!local_maximum(coarse_center, coarse_inc, coarse_r, patch, p3d, img, cam, coarse_max_p_trans, … in set_match_translations() [all …]
|
/dports/misc/vxl/vxl-3.3.2/contrib/brl/bbas/bpgl/depth_map/ |
H A D | depth_map_region.cxx | 41 vgl_point_3d<double> p3d; in region_2d_to_3d() local 42 bool success = vgl_intersection(ray, region_plane, p3d); in region_2d_to_3d() 44 verts_3d.push_back(new vsol_point_3d(p3d)); in region_2d_to_3d() 84 vgl_point_3d<double> p3d; in region_2d_to_3d() local 85 bool success = vgl_intersection(ray, plane, p3d); in region_2d_to_3d() 87 verts_3d.push_back(new vsol_point_3d(p3d)); in region_2d_to_3d() 232 vgl_point_3d<double> p3d; in region_ground_2d_to_3d() local 260 vgl_point_3d<double> p3d, org = ray.origin(); in move_to_depth() local 265 vgl_vector_3d<double> v3d = p3d-org; in move_to_depth() 277 vgl_point_3d<double> pmoved_3d = p3d+vmove; in move_to_depth() [all …]
|
/dports/math/py-yt/yt-4.0.1/yt/data_objects/tests/ |
H A D | test_profiles.py | 103 p3d = Profile3D( 123 assert_equal(p3d["index", "ones"].sum(), nv) 179 p3d = Profile3D( 198 p3d.add_fields(("index", "ones")) 200 assert_equal(p3d["index", "ones"], np.ones((nb, nb, nb)) * av) 203 p3d = Profile3D( 222 p3d.add_fields([("index", "ones")]) 223 assert_equal(p3d["index", "ones"], np.ones((nb, nb, nb))) 304 p3d = Profile3D( 323 p3d.add_fields([("all", "particle_ones")]) [all …]
|
/dports/graphics/osg34/OpenSceneGraph-OpenSceneGraph-3.4.1/applications/present3D/ |
H A D | ReadShowFile.cpp | 57 bool p3d::getFileNames(osg::ArgumentParser& arguments, FileNameList& xmlFiles, FileNameList& normal… in getFileNames() 78 bool p3d::readEnvVars(osg::ArgumentParser& arguments) in readEnvVars() 98 if (p3d::readEnvVars(file)) readVars = true; in readEnvVars() 107 bool p3d::readEnvVars(const std::string& fileName) in readEnvVars() 182 osg::ref_ptr<osg::Node> p3d::readHoldingSlide(const std::string& filename) in readHoldingSlide() 195 osg::ref_ptr<osg::Node> p3d::readPresentation(const std::string& filename,const osgDB::ReaderWriter… in readPresentation() 207 osg::ref_ptr<osg::Node> p3d::readShowFiles(osg::ArgumentParser& arguments,const osgDB::ReaderWriter… in readShowFiles() 287 sw->setEventCallback(new p3d::ShowEventHandler()); in readShowFiles()
|
/dports/graphics/osg/OpenSceneGraph-OpenSceneGraph-3.6.5/applications/present3D/ |
H A D | ReadShowFile.cpp | 58 bool p3d::getFileNames(osg::ArgumentParser& arguments, FileNameList& xmlFiles, FileNameList& normal… in getFileNames() 79 bool p3d::readEnvVars(osg::ArgumentParser& arguments) in readEnvVars() 99 if (p3d::readEnvVars(file)) readVars = true; in readEnvVars() 108 bool p3d::readEnvVars(const std::string& fileName) in readEnvVars() 183 osg::ref_ptr<osg::Node> p3d::readHoldingSlide(const std::string& filename) in readHoldingSlide() 196 osg::ref_ptr<osg::Node> p3d::readPresentation(const std::string& filename,const osgDB::ReaderWriter… in readPresentation() 208 osg::ref_ptr<osg::Node> p3d::readShowFiles(osg::ArgumentParser& arguments,const osgDB::ReaderWriter… in readShowFiles() 288 sw->setEventCallback(new p3d::ShowEventHandler()); in readShowFiles()
|