Home
last modified time | relevance | path

Searched refs:z_near (Results 1 – 25 of 278) sorted by relevance

12345678910>>...12

/dports/graphics/open3d/Open3D-0.2/src/Visualization/Utility/
H A DGLHelper.cpp56 double z_near, double z_far) in Perspective() argument
63 mat(2, 2) = -(z_far + z_near) / (z_far - z_near); in Perspective()
65 mat(2, 3) = -2.0 * z_far * z_near / (z_far - z_near); in Perspective()
70 double z_near, double z_far) in Ortho() argument
75 mat(2, 2) = -2.0 / (z_far - z_near); in Ortho()
78 mat(2, 3) = -(z_far + z_near) / (z_far - z_near); in Ortho()
/dports/graphics/py-open3d-python/Open3D-0.2/src/Visualization/Utility/
H A DGLHelper.cpp56 double z_near, double z_far) in Perspective() argument
63 mat(2, 2) = -(z_far + z_near) / (z_far - z_near); in Perspective()
65 mat(2, 3) = -2.0 * z_far * z_near / (z_far - z_near); in Perspective()
70 double z_near, double z_far) in Ortho() argument
75 mat(2, 2) = -2.0 / (z_far - z_near); in Ortho()
78 mat(2, 3) = -(z_far + z_near) / (z_far - z_near); in Ortho()
/dports/devel/boost-docs/boost_1_72_0/libs/qvm/test/
H A Dprojection_test.cpp14 test_perspective_lh( T fov_y, T aspect_ratio, T z_near, T z_far ) in test_perspective_lh() argument
17 test_qvm::matrix<M1,4,4> const m=perspective_lh(fov_y,aspect_ratio,z_near,z_far); in test_perspective_lh()
18 test_qvm::matrix_perspective_lh(m.b,fov_y,aspect_ratio,z_near,z_far); in test_perspective_lh()
24 test_perspective_rh( T fov_y, T aspect_ratio, T z_near, T z_far ) in test_perspective_rh() argument
27 test_qvm::matrix<M1,4,4> const m=perspective_rh(fov_y,aspect_ratio,z_near,z_far); in test_perspective_rh()
28 test_qvm::matrix_perspective_rh(m.b,fov_y,aspect_ratio,z_near,z_far); in test_perspective_rh()
/dports/devel/boost-python-libs/boost_1_72_0/libs/qvm/test/
H A Dprojection_test.cpp14 test_perspective_lh( T fov_y, T aspect_ratio, T z_near, T z_far ) in test_perspective_lh() argument
17 test_qvm::matrix<M1,4,4> const m=perspective_lh(fov_y,aspect_ratio,z_near,z_far); in test_perspective_lh()
18 test_qvm::matrix_perspective_lh(m.b,fov_y,aspect_ratio,z_near,z_far); in test_perspective_lh()
24 test_perspective_rh( T fov_y, T aspect_ratio, T z_near, T z_far ) in test_perspective_rh() argument
27 test_qvm::matrix<M1,4,4> const m=perspective_rh(fov_y,aspect_ratio,z_near,z_far); in test_perspective_rh()
28 test_qvm::matrix_perspective_rh(m.b,fov_y,aspect_ratio,z_near,z_far); in test_perspective_rh()
/dports/devel/boost-libs/boost_1_72_0/libs/qvm/test/
H A Dprojection_test.cpp14 test_perspective_lh( T fov_y, T aspect_ratio, T z_near, T z_far ) in test_perspective_lh() argument
17 test_qvm::matrix<M1,4,4> const m=perspective_lh(fov_y,aspect_ratio,z_near,z_far); in test_perspective_lh()
18 test_qvm::matrix_perspective_lh(m.b,fov_y,aspect_ratio,z_near,z_far); in test_perspective_lh()
24 test_perspective_rh( T fov_y, T aspect_ratio, T z_near, T z_far ) in test_perspective_rh() argument
27 test_qvm::matrix<M1,4,4> const m=perspective_rh(fov_y,aspect_ratio,z_near,z_far); in test_perspective_rh()
28 test_qvm::matrix_perspective_rh(m.b,fov_y,aspect_ratio,z_near,z_far); in test_perspective_rh()
/dports/devel/hyperscan/boost_1_75_0/libs/qvm/test/
H A Dprojection_test.cpp14 test_perspective_lh( T fov_y, T aspect_ratio, T z_near, T z_far ) in test_perspective_lh() argument
17 test_qvm::matrix<M1,4,4> const m=perspective_lh(fov_y,aspect_ratio,z_near,z_far); in test_perspective_lh()
18 test_qvm::matrix_perspective_lh(m.b,fov_y,aspect_ratio,z_near,z_far); in test_perspective_lh()
24 test_perspective_rh( T fov_y, T aspect_ratio, T z_near, T z_far ) in test_perspective_rh() argument
27 test_qvm::matrix<M1,4,4> const m=perspective_rh(fov_y,aspect_ratio,z_near,z_far); in test_perspective_rh()
28 test_qvm::matrix_perspective_rh(m.b,fov_y,aspect_ratio,z_near,z_far); in test_perspective_rh()
/dports/misc/openmvg/openMVG-2.0/src/openMVG/geometry/
H A Dfrustum.cpp19 : z_near( -1. ), in Frustum()
32 : z_near( -1. ), in Frustum()
64 : z_near( -1. ), in Frustum()
101 z_near = zNear; in Frustum()
117 points.push_back( Rt * ( z_near * ( Kinv * Vec3( 0, 0, 1.0 ) ) ) + C ); in Frustum()
118 points.push_back( Rt * ( z_near * ( Kinv * Vec3( w, 0, 1.0 ) ) ) + C ); in Frustum()
119 points.push_back( Rt * ( z_near * ( Kinv * Vec3( w, h, 1.0 ) ) ) + C ); in Frustum()
120 points.push_back( Rt * ( z_near * ( Kinv * Vec3( 0, h, 1.0 ) ) ) + C ); in Frustum()
/dports/misc/openmvg/openMVG-2.0/src/software/SfM/
H A Dmain_FrustumFiltering.cpp51 const double z_near = -1., // default near plane in BuildPairsFromFrustumsIntersections() argument
55 const Frustum_Filter frustum_filter(sfm_data, z_near, z_far); in BuildPairsFromFrustumsIntersections()
75 double z_near = -1.; in main() local
80 cmd.add( make_option('n', z_near, "z_near") ); in main()
111 …const Pair_Set pairs = BuildPairsFromFrustumsIntersections(sfm_data, z_near, z_far, stlplus::folde… in main()
/dports/misc/openmvg/openMVG-2.0/src/software/SfM/export/
H A Dmain_ExportCameraFrustums.cpp35 double z_near = -1.; in main() local
40 cmd.add( make_option('n', z_near, "z_near") ); in main()
76 const Frustum_Filter frustum_filter(sfm_data, z_near, z_far); in main()
/dports/www/chromium-legacy/chromium-88.0.4324.182/chrome/browser/vr/
H A Dui.cc806 float z_near) { in GetMinimalFovForWebXrOverlayElements() argument
815 float z_near) { in GetMinimalFov() argument
818 -z_near * std::tan(fov_recommended.left * base::kPiFloat / 180); in GetMinimalFov()
820 z_near * std::tan(fov_recommended.right * base::kPiFloat / 180); in GetMinimalFov()
824 z_near * std::tan(fov_recommended.top * base::kPiFloat / 180); in GetMinimalFov()
849 left_bottom.Scale(-z_near / left_bottom.z()); in GetMinimalFov()
850 left_top.Scale(-z_near / left_top.z()); in GetMinimalFov()
851 right_bottom.Scale(-z_near / right_bottom.z()); in GetMinimalFov()
852 right_top.Scale(-z_near / right_top.z()); in GetMinimalFov()
890 const float margin = std::tan(kMargin) * z_near; in GetMinimalFov()
[all …]
/dports/x11-wm/muffin/muffin-4.8.0/cogl/cogl/
H A Dcogl-matrix.h336 float z_near,
359 float z_near,
454 float z_near,
491 float z_near,
/dports/www/chromium-legacy/chromium-88.0.4324.182/chrome/browser/android/vr/
H A Dgvr_graphics_delegate.cc73 float z_near, in PerspectiveMatrixFromView() argument
76 const float x_left = -std::tan(gfx::DegToRad(fov.left)) * z_near; in PerspectiveMatrixFromView()
77 const float x_right = std::tan(gfx::DegToRad(fov.right)) * z_near; in PerspectiveMatrixFromView()
78 const float y_bottom = -std::tan(gfx::DegToRad(fov.bottom)) * z_near; in PerspectiveMatrixFromView()
79 const float y_top = std::tan(gfx::DegToRad(fov.top)) * z_near; in PerspectiveMatrixFromView()
81 DCHECK(x_left < x_right && y_bottom < y_top && z_near < z_far && in PerspectiveMatrixFromView()
82 z_near > 0.0f && z_far > 0.0f); in PerspectiveMatrixFromView()
83 const float X = (2 * z_near) / (x_right - x_left); in PerspectiveMatrixFromView()
84 const float Y = (2 * z_near) / (y_top - y_bottom); in PerspectiveMatrixFromView()
87 const float C = (z_near + z_far) / (z_near - z_far); in PerspectiveMatrixFromView()
[all …]
/dports/graphics/cogl/cogl-1.22.8/cogl/
H A Dcogl-matrix.h344 float z_near,
367 float z_near,
465 float z_near,
502 float z_near,
H A Dcogl.c288 float z_near, in cogl_set_fog() argument
300 ctx->legacy_fog_state.z_near = z_near; in cogl_set_fog()
467 float z_near, in cogl_perspective() argument
471 fov_y, aspect, z_near, z_far); in cogl_perspective()
479 float z_near, in cogl_frustum() argument
483 left, right, bottom, top, z_near, z_far); in cogl_frustum()
/dports/devel/godot/godot-3.2.3-stable/drivers/gles3/shaders/
H A Dcube_to_dp.glsl25 uniform highp float z_near;
77 float linear_depth = 2.0 * z_near * z_far / (z_far + z_near - depth * (z_far - z_near));
/dports/devel/godot-tools/godot-3.2.3-stable/drivers/gles3/shaders/
H A Dcube_to_dp.glsl25 uniform highp float z_near;
77 float linear_depth = 2.0 * z_near * z_far / (z_far + z_near - depth * (z_far - z_near));
/dports/multimedia/gpac-mp4box/gpac-1.0.0/src/compositor/
H A Dcamera.c212 cam->z_near = FIX_ONE / 100; in camera_update_stereo()
222 wd2 = gf_mulfix(cam->z_near, gf_tan(cam->fieldOfView/2)); in camera_update_stereo()
223 ndfl = gf_divfix(cam->z_near, viewing_distance); in camera_update_stereo()
233 cam->projection.m[0] = gf_divfix(2*cam->z_near, (right-left)); in camera_update_stereo()
237 cam->projection.m[10] = gf_divfix(cam->z_far+cam->z_near, cam->z_near-cam->z_far); in camera_update_stereo()
239 cam->projection.m[14] = 2*gf_muldiv(cam->z_near, cam->z_far, cam->z_near-cam->z_far); in camera_update_stereo()
270 vlen = cam->z_far - cam->z_near; in camera_update_stereo()
275 center.z = cam->z_near + vlen / 2; in camera_update_stereo()
283 cam->center = gf_vec_scale(cam->center, cam->z_near + vlen/2); in camera_update_stereo()
290 cam->z_near = INT2FIX(NEAR_PLANE_2D); in camera_update_stereo()
[all …]
/dports/multimedia/gpac-libgpac/gpac-1.0.0/src/compositor/
H A Dcamera.c212 cam->z_near = FIX_ONE / 100; in camera_update_stereo()
222 wd2 = gf_mulfix(cam->z_near, gf_tan(cam->fieldOfView/2)); in camera_update_stereo()
223 ndfl = gf_divfix(cam->z_near, viewing_distance); in camera_update_stereo()
233 cam->projection.m[0] = gf_divfix(2*cam->z_near, (right-left)); in camera_update_stereo()
237 cam->projection.m[10] = gf_divfix(cam->z_far+cam->z_near, cam->z_near-cam->z_far); in camera_update_stereo()
239 cam->projection.m[14] = 2*gf_muldiv(cam->z_near, cam->z_far, cam->z_near-cam->z_far); in camera_update_stereo()
270 vlen = cam->z_far - cam->z_near; in camera_update_stereo()
275 center.z = cam->z_near + vlen / 2; in camera_update_stereo()
283 cam->center = gf_vec_scale(cam->center, cam->z_near + vlen/2); in camera_update_stereo()
290 cam->z_near = INT2FIX(NEAR_PLANE_2D); in camera_update_stereo()
[all …]
/dports/graphics/open3d/Open3D-0.2/src/Visualization/Visualizer/
H A DVisualizerRender.cpp264 double z_near = view_control_ptr_->GetZNear(); in CaptureDepthFloatBuffer() local
278 double z_depth = 2.0 * z_near * z_far / in CaptureDepthFloatBuffer()
279 (z_far + z_near - (2.0 * (double)p_depth[j] - 1.0) * in CaptureDepthFloatBuffer()
280 (z_far - z_near)); in CaptureDepthFloatBuffer()
336 double z_near = view_control_ptr_->GetZNear(); in CaptureDepthImage() local
350 double z_depth = 2.0 * z_near * z_far / in CaptureDepthImage()
351 (z_far + z_near - (2.0 * (double)p_depth[j] - 1.0) * in CaptureDepthImage()
352 (z_far - z_near)); in CaptureDepthImage()
/dports/graphics/py-open3d-python/Open3D-0.2/src/Visualization/Visualizer/
H A DVisualizerRender.cpp264 double z_near = view_control_ptr_->GetZNear(); in CaptureDepthFloatBuffer() local
278 double z_depth = 2.0 * z_near * z_far / in CaptureDepthFloatBuffer()
279 (z_far + z_near - (2.0 * (double)p_depth[j] - 1.0) * in CaptureDepthFloatBuffer()
280 (z_far - z_near)); in CaptureDepthFloatBuffer()
336 double z_near = view_control_ptr_->GetZNear(); in CaptureDepthImage() local
350 double z_depth = 2.0 * z_near * z_far / in CaptureDepthImage()
351 (z_far + z_near - (2.0 * (double)p_depth[j] - 1.0) * in CaptureDepthImage()
352 (z_far - z_near)); in CaptureDepthImage()
/dports/devel/godot-tools/godot-3.2.3-stable/drivers/gles2/shaders/
H A Dcube_to_dp.glsl48 uniform highp float z_near;
100 float linear_depth = 2.0 * z_near * z_far / (z_far + z_near - depth * (z_far - z_near));
/dports/devel/godot/godot-3.2.3-stable/drivers/gles2/shaders/
H A Dcube_to_dp.glsl48 uniform highp float z_near;
100 float linear_depth = 2.0 * z_near * z_far / (z_far + z_near - depth * (z_far - z_near));
/dports/graphics/graphene/graphene-1.10.6/include/
H A Dgraphene-simd4x4f.h566 float delta_z = z_far - z_near; in graphene_simd4x4f_init_perspective()
571 float c = -(z_far + z_near) / delta_z; in graphene_simd4x4f_init_perspective()
572 float d = -2 * z_near * z_far / delta_z; in graphene_simd4x4f_init_perspective()
600 float z_near, in graphene_simd4x4f_init_ortho() argument
605 float delta_z = z_far - z_near; in graphene_simd4x4f_init_ortho()
612 float f = -(z_far + z_near) / delta_z; in graphene_simd4x4f_init_ortho()
701 float z_near, in graphene_simd4x4f_init_frustum() argument
704 float x = 2.f * z_near / (right - left); in graphene_simd4x4f_init_frustum()
705 float y = 2.f * z_near / (top - bottom); in graphene_simd4x4f_init_frustum()
709 float c = -1.f * (z_far + z_near) / (z_far - z_near); in graphene_simd4x4f_init_frustum()
[all …]
/dports/graphics/cogl/cogl-1.22.8/examples/
H A Dcogl-crate.c153 float fovy, aspect, z_near, z_2d, z_far; in main() local
178 z_near = 0.1; /* distance to near clipping plane */ in main()
182 cogl_framebuffer_perspective (fb, fovy, aspect, z_near, z_far); in main()
196 cogl_matrix_view_2d_in_perspective (&data.view, fovy, aspect, z_near, z_2d, in main()
/dports/graphics/cluttermm/cluttermm-1.17.3/clutter/src/
H A Dstage.ccg23 Perspective::Perspective(float fovy, float aspect, float z_near, float z_far)
27 gobject_.z_near = z_near;

12345678910>>...12