|
Blender
V2.93
|
Go to the source code of this file.
| ccl_device_inline float2 as_float2 | ( | const float4 & | a | ) |
Definition at line 245 of file util_math_float2.h.
References Freestyle::a, and make_float2.
| ccl_device_inline float average | ( | const float2 & | a | ) |
Definition at line 183 of file util_math_float2.h.
References Freestyle::a.
Referenced by background_cdf(), bsdf_alloc(), bsdf_microfacet_fresnel_color(), bsdf_transparent_setup(), bssrdf_alloc(), bssrdf_setup(), Object::compute_volume_step_size(), ConvertNode::constant_fold(), blender::compositor::KeyingBlurOperation::executePixel(), kernel_filter_detect_outliers(), kernel_path_background(), kernel_path_shader_apply(), kernel_write_data_passes(), kernel_write_result(), merge_layer_render_time(), merge_render_time(), paint_stroke_sample_average(), path_radiance_accum_transparent(), set_attribute_float2(), set_attribute_float3(), set_attribute_float4(), shader_bsdf_ao(), shader_bsdf_average_normal(), shader_bsdf_average_roughness(), svm_node_attr(), svm_node_attr_bump_dx(), svm_node_attr_bump_dy(), svm_node_closure_bsdf(), svm_node_convert(), and svm_node_tex_magic().
| ccl_device_inline float2 clamp | ( | const float2 & | a, |
| const float2 & | mn, | ||
| const float2 & | mx | ||
| ) |
Definition at line 235 of file util_math_float2.h.
References Freestyle::a, max(), and min().
| ccl_device_inline float cross | ( | const float2 & | a, |
| const float2 & | b | ||
| ) |
Definition at line 198 of file util_math_float2.h.
References Freestyle::a, float2::x, and float2::y.
| ccl_device_inline float distance | ( | const float2 & | a, |
| const float2 & | b | ||
| ) |
Definition at line 188 of file util_math_float2.h.
References Freestyle::a, and len().
Referenced by _softbody_calc_forces_slice_in_a_thread(), btGImpactCollisionAlgorithm::addContactPoint(), applyPushPull(), applyShrinkFatten(), BKE_curveprofile_insert(), brush_influence_calc(), brush_painter_2d_refresh_cache(), brush_painter_imbuf_new(), brush_smear_apply(), btComputeGjkEpaPenetration(), capsuleCapsuleDistance(), cast_ray_highpoly(), Freestyle::GridHelpers::closestPointOnPolygon(), Freestyle::GridHelpers::closestPointToSegment(), cloth_brush_simulation_falloff_get(), cloth_collision(), cloth_selfcollision(), SphereTriangleDetector::collide(), btConvexPlaneCollisionAlgorithm::collideSingleContact(), collision_response(), createPredictiveContactsInternal(), Freestyle::GridHelpers::distancePointToPolygon(), do_cloth_brush_apply_forces_task_cb_ex(), draw_bone_envelope(), draw_horizontal_scale_indicators(), draw_vertical_scale_indicators(), drw_shgroup_bone_envelope_distance(), dynamic_paint_paint_single_point_cb_ex(), edge_pan_speed(), envelope_bone_weighting(), libmv::EuclideanScaleToUnity(), blender::compositor::DilateErodeThresholdOperation::executePixel(), blender::compositor::DilateDistanceOperation::executePixel(), blender::compositor::ErodeDistanceOperation::executePixel(), blender::compositor::BokehImageOperation::executePixelSampled(), blender::compositor::DistanceRGBMatteOperation::executePixelSampled(), blender::compositor::KeyingOperation::executePixelSampled(), OpenVDBLevelSet::filter(), find_nearest_plane_track(), btPolyhedralContactClipping::findSeparatingAxis(), btSoftBody::generateBendingConstraints(), blender::string_search::get_fuzzy_match_errors(), btGjkPairDetector::getClosestPointsNonVirtual(), btSphereBoxCollisionAlgorithm::getSphereDistance(), btGImpactCollisionAlgorithm::gimpacttrimeshpart_vs_plane_collision(), gpencil_brush_influence_calc(), gpencil_stroke_eraser_calc_influence(), hair_collision(), BCMatrix::in_range(), blender::compositor::DirectionalBlurOperation::initExecution(), InputCustomRatioFlip(), blender::Vector< T, InlineBufferCapacity, Allocator >::insert(), key_inside_circle(), NODE_DEFINE(), libmv::nViewDatasetConfigator::nViewDatasetConfigator(), OpenVDBLevelSet_filter(), paint_2d_stroke(), paint_brush_color_get(), paint_proj_stroke(), paint_proj_stroke_ps(), paint_stroke_update_step(), pick_input_link_by_link_intersect(), btConvexPlaneCollisionAlgorithm::processCollision(), btTriangleRaycastCallback::processTriangle(), ray_optical_depth(), resolveSingleBilateral(), resolveSingleCollision(), sb_spring_force(), sculpt_boundary_index_add(), select_major_distance(), blender::compositor::DilateErodeThresholdOperation::setDistance(), blender::compositor::DilateDistanceOperation::setDistance(), blender::compositor::KeyingNode::setupDilateErode(), blender::compositor::KeyingNode::setupFeather(), setupFrictionConstraint(), setupMultiBodyContactConstraint(), single_scattering(), svm_node_camera(), svm_vector_math(), TEST(), View(), view2d_major_step_x__time(), voronoi_distance_2d(), voronoi_distance_3d(), voronoi_distance_4d(), voronoi_getNextSideCoord(), voronoi_n_sphere_radius_2d(), voronoi_n_sphere_radius_3d(), voronoi_n_sphere_radius_4d(), walkEvent(), and wm_block_splash_image_roundcorners_add().
| ccl_device_inline float dot | ( | const float2 & | a, |
| const float2 & | b | ||
| ) |
Definition at line 193 of file util_math_float2.h.
References Freestyle::a, float2::x, and float2::y.
Referenced by btPerturbedContactResult::addContactPoint(), btDeformableMassSpringForce::addScaledDampingForceDifferential(), Hair::apply_transform(), atmosphere_intersection(), attr_create_pointiness(), bezier_handle_calc_length_v3(), BKE_mesh_remap_calc_loops_from_mesh(), BKE_object_empty_image_data_is_visible_in_view3d(), blender_camera_focal_distance(), bm_vert_pair_best_face_get(), bm_vert_pair_share_best_splittable_face_cb(), BM_vert_pair_share_face_by_angle(), bsdf_ashikhmin_shirley_eval_reflect(), bsdf_ashikhmin_shirley_sample(), bsdf_ashikhmin_velvet_eval_reflect(), bsdf_ashikhmin_velvet_sample(), bsdf_diffuse_eval_reflect(), bsdf_diffuse_sample(), bsdf_diffuse_toon_eval_reflect(), bsdf_diffuse_toon_sample(), bsdf_eval(), bsdf_glossy_toon_eval_reflect(), bsdf_glossy_toon_sample(), bsdf_hair_reflection_eval_reflect(), bsdf_hair_reflection_sample(), bsdf_hair_transmission_eval_transmit(), bsdf_hair_transmission_sample(), bsdf_microfacet_beckmann_eval_reflect(), bsdf_microfacet_beckmann_eval_transmit(), bsdf_microfacet_beckmann_sample(), bsdf_microfacet_ggx_eval_reflect(), bsdf_microfacet_ggx_eval_transmit(), bsdf_microfacet_ggx_sample(), bsdf_microfacet_multi_ggx_eval_reflect(), bsdf_microfacet_multi_ggx_glass_eval_reflect(), bsdf_microfacet_multi_ggx_glass_eval_transmit(), bsdf_microfacet_multi_ggx_glass_sample(), bsdf_microfacet_multi_ggx_sample(), bsdf_oren_nayar_eval_reflect(), bsdf_oren_nayar_get_intensity(), bsdf_oren_nayar_sample(), bsdf_principled_diffuse_eval_reflect(), bsdf_principled_diffuse_sample(), bsdf_principled_hair_eval(), bsdf_principled_hair_sample(), bsdf_principled_sheen_eval_reflect(), bsdf_principled_sheen_sample(), bsdf_reflection_sample(), bsdf_sample(), bsdf_translucent_eval_transmit(), bsdf_translucent_sample(), btDiscoverPortal(), btDoSimplex2(), btDoSimplex3(), btExpandPortal(), btMprVec3Dot(), btNearestPointInLineSegment(), btVec3Dot(), btPrimitiveTriangle::buildTriPlane(), btTriangleShapeEx::buildTriPlane(), bump_shadowing_term(), calc_edge_mat(), calculate_avg_principled_sheen_brdf(), calculate_principled_diffuse_brdf(), calculate_principled_sheen_brdf(), camera_distance(), closestPtPointTetrahedron(), collision_response(), compatible_faceforward(), btMultiBodyFixedConstraint::createConstraintRows(), btMultiBodySliderConstraint::createConstraintRows(), deflect_emitter_iter(), differential_transfer(), direct_emission(), dynamic_paint_paint_mesh_cell_point_cb_ex(), emissive_pdf(), ensure_valid_reflection(), btSoftBodyHelpers::extrapolateBarycentricWeights(), FindIncidentEdge(), fresnel_dielectric(), frontface(), get_limit_motor_info2(), btSoftBodyHelpers::getBarycentricWeights(), getBernsteinCoeff(), btGjkPairDetector::getClosestPointsNonVirtual(), LocalSupportVertexCallback::internalProcessTriangleIndex(), interpolate_fresnel_color(), isect_line_plane_v3(), isect_ray_plane_v3(), kernel_path_ao(), kernel_volume_equiangular_pdf(), kernel_volume_equiangular_sample(), lamp_light_eval(), lamp_light_pdf(), lamp_light_sample(), len(), light_spread_attenuation(), light_spread_clamp_area_light(), line_plane_factor_v3(), line_point_factor_v2_ex(), line_point_factor_v3_ex(), ShaderManager::linear_rgb_to_gray(), linear_rgb_to_gray(), make_transform_frame(), Matrix_imatmul(), Matrix_matmul(), mean_value_half_tan_v2_db(), mean_value_half_tan_v3(), mf_eval_phase_glass(), mf_glass_pdf(), mf_lambda(), mf_sample_phase_glass(), mf_sample_phase_glossy(), mirrorball_to_direction(), motion_triangle_refine(), CCL_NAMESPACE_BEGIN::TileComparator::operator()(), operator*(), pdf_uniform_cone(), pointOutsideOfPlane(), portalCanEncapsuleOrigin(), portalEncapsulesOrigin(), SupportVertexCallback::processTriangle(), project(), quat_interpolate(), ray_aligned_disk_intersect(), ray_point_factor_v3_ex(), ray_quad_intersect(), ray_sphere_intersect(), ray_triangle_intersect(), rect_light_sample(), SEQ_sequence_base_unique_name_recursive(), setupFrictionConstraint(), setupMultiBodyContactConstraint(), shader_setup_from_ray(), shader_setup_from_sample(), btConvexHullInternal::shrink(), single_scattering(), solveConstraintObsolete(), btTranslationalLimitMotor::solveLinearAxis(), spot_light_attenuation(), subsurface_random_walk(), subsurface_scatter_disk(), surface_intersection(), svm_node_closure_bsdf(), svm_node_fresnel(), svm_node_layer_weight(), svm_node_normal(), svm_node_set_bump(), svm_node_tex_coord(), svm_node_tex_coord_bump_dx(), svm_node_tex_coord_bump_dy(), svm_vector_math(), btModifiedGramSchmidt< TV >::test(), timesTranspose(), OSLRenderServices::trace(), transform_compose(), transform_decompose(), transform_direction_transposed(), transform_motion_decompose(), transform_negative_scale(), transform_perspective(), triangle_light_pdf(), triangle_light_pdf_area(), triangle_light_sample(), triangle_refine(), triangle_refine_local(), volume_henyey_greenstein_eval_phase(), voronoi_distance_to_edge_2d(), voronoi_distance_to_edge_3d(), voronoi_distance_to_edge_4d(), wireframe(), Camera::world_to_raster_size(), and xyz_to_rgb().
| ccl_device_inline float2 fabs | ( | const float2 & | a | ) |
Definition at line 240 of file util_math_float2.h.
References Freestyle::a, fabsf, and make_float2.
Referenced by blender::double2::abs(), blender::double3::abs(), iTaSC::Cache::addCacheVectorIfDifferent(), adjustSwingAxisToUseEllipseNormal(), Freestyle::angle_from_cotan(), IK_QJacobian::AngleUpdateNorm(), BLI_str_format_byte_unit(), BM_mesh_calc_volume(), bmo_extrude_face_region_exec(), Freestyle::ViewMapBuilder::BuildGrid(), libmv::ceil0(), BCAnimationCurve::closest_index_above(), cloth_calc_force(), collision_compute_barycentric(), color_filter_task_cb(), colorfn(), Object::compute_volume_step_size(), computeConeLimitInfo(), Freestyle::FEdgeXDetector::computeCurvatures(), Freestyle::ViewMapBuilder::ComputeRayCastingVisibility(), Freestyle::Strip::computeTexCoordWithTips(), Freestyle::computeVisibility(), Freestyle::SteerableViewMap::ComputeWeight(), Freestyle::Strip::createStrip(), createTransActionData(), Freestyle::CurveInternal::__point_iterator< Traits >::decrement(), Freestyle::CurveInternal::CurvePointIterator::decrement(), direct_emission(), DistanceBetweenLines(), double_round(), edge_pos_direction_worldspace_get(), Freestyle::OGF::NormalCycle::end(), libmv::euclidean_resection::EuclideanResectionAnsarDaniilidis(), Freestyle::firstIntersectionGridVisitor::examineOccluder(), blender::compositor::ConvertDepthToRadiusOperation::executePixelSampled(), blender::compositor::MathAbsoluteOperation::executePixelSampled(), filter_get_feature_scales_sse(), filter_get_features_sse(), find_superellipse_chord_endpoint(), Freestyle::findOccludee(), Freestyle::ViewMapBuilder::FindOccludee(), fresnel_dielectric_cos(), FuzzyZero(), blender::meshintersect::get_vertex_by_coord(), blender::io::alembic::get_weight_and_index(), KDL::Rotation::GetEulerZYZ(), iTaSC::Armature::getMaxJointChange(), GHOST_WindowWin32::getPointerInfo(), GetPointForAngle(), KDL::Rotation::GetRPY(), gpencil_brush_angle(), gpencil_brush_angle_segment(), graph_key_shortest_dist(), Freestyle::gts_vertex_principal_directions(), halton_ex(), Freestyle::SilhouetteGeomEngine::ImageToWorldParameter(), BCMatrix::in_range(), init_scene(), integer_digits_d(), integer_digits_f(), Freestyle::GeomUtils::intersect2dLine2dLine(), Freestyle::GeomUtils::intersect2dSeg2dSeg(), Freestyle::GeomUtils::intersect2dSeg2dSegParametric(), Freestyle::GeomUtils::intersect2dSegPoly(), Freestyle::GeomUtils::intersectRayPlane(), BCAnimationCurve::is_animated(), isect_seg_seg_v2_lambda_mu_db(), kernel_volume_sample_channel(), keyframe_time_differs(), Freestyle::LanczosWindowed(), btLemkeAlgorithm::LexicographicPositive(), lineart_LineIntersectTest2d(), lineart_triangle_2v_intersection_test(), lineart_triangle_edge_image_space_occlusion(), lineart_triangle_intersect(), blender::meshintersect::math_abs(), KDL::Vector::Norm(), KDL::Vector2::Norm(), KDL::Norm(), Freestyle::notValid(), Freestyle::less_SVertex2D::operator()(), Freestyle::GeomUtils::overlapTriangleBox(), paint_stroke_integrate_overlap(), path_state_continuation_probability(), Freestyle::FEdgeXDetector::ProcessRidgeFace(), Freestyle::FEdgeXDetector::ProcessSuggestiveContourFace(), GHOST_WindowWin32::processWin32TabletEvent(), KDL::PYTHAG(), quadric_to_tensor_m3_inverse(), quat_to_mat4(), Freestyle::AppView::rabs(), resolve_quad_uv_v2_deriv(), round_to_digits(), scrollbar_start_scrolling(), Freestyle::OGF::MatrixUtil::semi_definite_symmetric_eigen(), setMotorTargetInConstraintSpace(), Freestyle::CalligraphicShader::shade(), Freestyle::StrokeShaders::BezierCurveShader::shade(), KDL::SIGN(), sinc(), iTaSC::WDLSSolver::solve(), iTaSC::WSDLSSolver::solve(), libmv::SolveCubicPolynomial(), SolveP3(), SolveP4De(), SolveP5_1(), SphericalRangeParameters(), KDL::svd_eigen_HH(), svm_mix_diff(), svm_vector_math(), libmv::TrkltRegionTracker::Track(), blender::nodes::try_dispatch_float_math_fl_to_fl(), UI_calc_float_precision(), UI_view2d_constant_grid_draw(), and widgetbase_set_uniform_alpha_check().
| ccl_device_inline float2 floor | ( | const float2 & | a | ) |
Definition at line 260 of file util_math_float2.h.
References Freestyle::a, floorf, and make_float2.
Referenced by bicubic_interpolation(), bilinear_interpolation(), bilinear_interpolation_color_wrap(), BKE_lattice_deform_data_eval_co(), BKE_ptcache_read(), BLI_cellNoiseU(), BLI_noise_cell_v3(), BLI_noise_voronoi(), boxsampleclip(), colorfn(), Freestyle::GaussianFilter::computeMaskSize(), Freestyle::Grid::configure(), cp_key(), deformStroke(), blender::compositor::RotateOperation::determineDependingAreaOfInterest(), do_2d_mapping(), do_key(), dof_dilate_tiles_pass_draw(), draw_image_buffer_repeated(), draw_seq_fcurve_overlay(), draw_seq_waveform_overlay(), blender::compositor::BilateralBlurOperation::executePixel(), blender::compositor::MathFloorOperation::executePixelSampled(), blender::compositor::MathFractOperation::executePixelSampled(), blender::compositor::MathTruncOperation::executePixelSampled(), blender::compositor::PreviewOperation::executeRegion(), fcm_cycles_time(), flushTransGraphData(), fract(), fractal_noise(), BCMatrix::get_matrix(), gpencil_frame_snap_nearest(), gridRaycast(), hsv_to_rgb(), imagewrap(), imagewraposa(), init_mv_jit(), Freestyle::Grid::initInfiniteRay(), Freestyle::Grid::initRay(), integer_digits_d(), integer_digits_f(), nearest_interpolation_color_wrap(), newPerlin(), old_mdisps_bilinear(), KDL::Jacobian::operator()(), orgBlenderNoise(), outliner_back(), recalcData_nla(), blender::gpu::FrameBuffer::recursive_downsample(), libmv::RegionIsInBounds(), Freestyle::Stroke::Resample(), sample_fcurve(), seq_speed_effect_target_frame_get(), setServoTarget(), Freestyle::StrokeShaders::BezierCurveShader::shade(), snap(), snap_mask_layer_nearest(), snapFrameTransform(), soft_range_round_down(), speed_effect_interpolation_ratio_get(), surfaceGenerateGrid(), svm_vector_math(), table_sample(), textview_draw_string(), blender::nodes::try_dispatch_float_math_fl3_fl3_to_fl3(), blender::nodes::try_dispatch_float_math_fl3_to_fl3(), ui_but_string_set(), ui_draw_aligned_panel(), UI_fontstyle_draw_ex(), UI_GetColorPtrBlendShade3ubv(), uilist_prepare(), unit_dual_convert(), iTaSC::Scene::update(), valuefn(), voronoi_distance_to_edge_2d(), voronoi_distance_to_edge_3d(), voronoi_distance_to_edge_4d(), voronoi_f1_2d(), voronoi_f1_3d(), voronoi_f1_4d(), voronoi_f2_2d(), voronoi_f2_3d(), voronoi_f2_4d(), voronoi_n_sphere_radius_2d(), voronoi_n_sphere_radius_3d(), voronoi_n_sphere_radius_4d(), voronoi_smooth_f1_2d(), voronoi_smooth_f1_3d(), voronoi_smooth_f1_4d(), WM_gesture_circle_modal(), wrap(), writeGrainSizes(), blender::compositor::zbuf_add_to_span(), zbuf_add_to_span(), blender::compositor::zbuf_fill_in_rgba(), and zspan_scanconvert().
| ccl_device_inline float2 interp | ( | const float2 & | a, |
| const float2 & | b, | ||
| float | t | ||
| ) |
Definition at line 250 of file util_math_float2.h.
References Freestyle::a, and t.
Referenced by beckmann_table_rows(), camera_sample_perspective(), ClipSegmentToLine(), InvertNode::constant_fold(), CurvesNode::constant_fold(), CustomData_data_transfer(), data_transfer_layersmapping_add_item(), data_transfer_layersmapping_add_item_cd(), data_transfer_layersmapping_cdlayers(), data_transfer_layersmapping_cdlayers_multisrc_to_dst(), data_transfer_layersmapping_generate(), LinearQuadPatch::eval(), CCL_NAMESPACE_BEGIN::TextureInterpolator< T >::interp_3d(), CCL_NAMESPACE_BEGIN::kernel_tex_image_interp(), CCL_NAMESPACE_BEGIN::kernel_tex_image_interp_3d(), kernel_tex_image_interp_3d(), QuadDice::map_uv(), meshcache_read_mdd_range(), meshcache_read_pc2_range(), MOD_meshcache_calc_range(), MOD_meshcache_read_mdd_frame(), MOD_meshcache_read_mdd_times(), MOD_meshcache_read_pc2_frame(), MOD_meshcache_read_pc2_times(), particle_key_weight(), project_paint_PickColor(), SKY_arhosekskymodel_radiance(), sky_radiance_nishita(), svm_mix_add(), svm_mix_blend(), svm_mix_color(), svm_mix_dark(), svm_mix_diff(), svm_mix_hue(), svm_mix_light(), svm_mix_mul(), svm_mix_sub(), svm_node_wavelength(), and AnimationImporter::write_animation().
| ccl_device_inline bool is_zero | ( | const float2 & | a | ) |
Definition at line 178 of file util_math_float2.h.
References Freestyle::a.
Referenced by bsdf_eval_is_zero(), bsdf_microfacet_multi_ggx_fresnel_setup(), bsdf_microfacet_multi_ggx_setup(), camera_sample_panorama(), direct_emission(), direction_to_equirectangular_range(), motion_triangle_smooth_normal(), shader_bsdf_ao(), shader_bsdf_average_normal(), shadow_handle_transparent_isect(), svm_node_normal_map(), svm_node_set_bump(), transform_motion_decompose(), transform_orientations_create_from_axis(), and triangle_smooth_normal().
| ccl_device_inline float len | ( | const float2 & | a | ) |
Definition at line 203 of file util_math_float2.h.
References Freestyle::a, dot(), and sqrtf.
Referenced by distance(), normalize(), normalize_len(), and safe_normalize().
| ccl_device_inline float2 max | ( | const float2 & | a, |
| const float2 & | b | ||
| ) |
Definition at line 230 of file util_math_float2.h.
References Freestyle::a, make_float2, float2::x, and float2::y.
Referenced by clamp().
| ccl_device_inline float2 min | ( | const float2 & | a, |
| const float2 & | b | ||
| ) |
Definition at line 225 of file util_math_float2.h.
References Freestyle::a, make_float2, float2::x, and float2::y.
Referenced by clamp().
| ccl_device_inline float2 mix | ( | const float2 & | a, |
| const float2 & | b, | ||
| float | t | ||
| ) |
Definition at line 255 of file util_math_float2.h.
References Freestyle::a, and t.
| ccl_device_inline float2 normalize | ( | const float2 & | a | ) |
Definition at line 208 of file util_math_float2.h.
References Freestyle::a, and len().
Referenced by Mesh::add_face_normals(), add_node(), Mesh::add_vertex_normals(), Mesh::apply_transform(), attr_create_pointiness(), blender_camera_focal_distance(), bsdf_ashikhmin_shirley_eval_reflect(), bsdf_ashikhmin_velvet_eval_reflect(), bsdf_ashikhmin_velvet_sample(), bsdf_hair_reflection_eval_reflect(), bsdf_hair_reflection_sample(), bsdf_hair_transmission_eval_transmit(), bsdf_hair_transmission_sample(), bsdf_microfacet_beckmann_eval_reflect(), bsdf_microfacet_beckmann_eval_transmit(), bsdf_microfacet_ggx_eval_reflect(), bsdf_microfacet_ggx_eval_transmit(), bsdf_principled_diffuse_eval_reflect(), bsdf_principled_diffuse_sample(), bsdf_principled_sheen_eval_reflect(), bsdf_principled_sheen_sample(), camera_direction_from_point(), camera_sample_orthographic(), camera_sample_panorama(), camera_sample_perspective(), camera_world_to_ndc(), GeometryManager::displace(), distant_light_sample(), ensure_valid_reflection(), LinearQuadPatch::eval(), BicubicPatch::eval(), kernel_path_surface_bounce(), make_orthonormals(), make_orthonormals_tangent(), make_transform_frame(), mf_eval(), mf_eval_phase_glass(), mf_eval_phase_glossy(), mf_ggx_aniso_pdf(), mf_ggx_pdf(), mf_sample(), mf_sample_phase_glass(), mf_sample_vndf(), microfacet_sample_stretched(), motion_triangle_shader_setup(), object_inverse_normal_transform(), object_normal_transform(), object_volume_density(), orthogonalize_m3_stable(), orthogonalize_m4_stable(), orthogonalize_stable(), primitive_motion_vector(), primitive_tangent(), quat_interpolate(), shader_bsdf_ao(), shader_bsdf_average_normal(), sphere_light_sample(), spherical_stereo_transform(), subsurface_random_walk(), svm_node_camera(), svm_node_closure_bsdf(), svm_node_ies(), svm_node_normal(), svm_node_set_bump(), svm_node_tangent(), svm_node_vector_displacement(), svm_node_vector_rotate(), svm_node_vector_transform(), svm_vector_math(), transform_clear_scale(), transform_rotate(), triangle_normal(), triangle_point_normal(), triangle_refine_local(), voronoi_distance_to_edge_2d(), voronoi_distance_to_edge_3d(), voronoi_distance_to_edge_4d(), and Camera::world_to_raster_size().
| ccl_device_inline float2 normalize_len | ( | const float2 & | a, |
| float * | t | ||
| ) |
Definition at line 213 of file util_math_float2.h.
References Freestyle::a, len(), and t.
Referenced by bvh_instance_push(), BVHUnaligned::compute_aligned_space(), direct_emission(), lamp_light_sample(), light_spread_clamp_area_light(), mf_glass_pdf(), motion_triangle_refine(), ray_aligned_disk_intersect(), rect_light_sample(), triangle_light_sample(), and triangle_refine().
| ccl_device_inline float2 one_float2 | ( | ) |
Definition at line 80 of file util_math_float2.h.
References make_float2.
Referenced by blender_camera_init().
| ccl_device_inline bool operator!= | ( | const float2 & | a, |
| const float2 & | b | ||
| ) |
Definition at line 173 of file util_math_float2.h.
References Freestyle::a.
| ccl_device_inline float2 operator* | ( | const float2 & | a, |
| const float2 & | b | ||
| ) |
Definition at line 91 of file util_math_float2.h.
References Freestyle::a, make_float2, float2::x, and float2::y.
| ccl_device_inline float2 operator* | ( | const float2 & | a, |
| float | f | ||
| ) |
Definition at line 96 of file util_math_float2.h.
References Freestyle::a, and make_float2.
| ccl_device_inline float2 operator* | ( | float | f, |
| const float2 & | a | ||
| ) |
Definition at line 101 of file util_math_float2.h.
References Freestyle::a, and make_float2.
| ccl_device_inline float2 operator*= | ( | float2 & | a, |
| const float2 & | b | ||
| ) |
Definition at line 147 of file util_math_float2.h.
References Freestyle::a.
| ccl_device_inline float2 operator*= | ( | float2 & | a, |
| float | f | ||
| ) |
Definition at line 152 of file util_math_float2.h.
References Freestyle::a.
| ccl_device_inline float2 operator+ | ( | const float2 & | a, |
| const float | f | ||
| ) |
Definition at line 122 of file util_math_float2.h.
References Freestyle::a, and make_float2.
| ccl_device_inline float2 operator+ | ( | const float2 & | a, |
| const float2 & | b | ||
| ) |
Definition at line 127 of file util_math_float2.h.
References Freestyle::a, make_float2, float2::x, and float2::y.
| ccl_device_inline float2 operator+= | ( | float2 & | a, |
| const float2 & | b | ||
| ) |
Definition at line 142 of file util_math_float2.h.
References Freestyle::a.
| ccl_device_inline float2 operator- | ( | const float2 & | a | ) |
Definition at line 86 of file util_math_float2.h.
References Freestyle::a, and make_float2.
| ccl_device_inline float2 operator- | ( | const float2 & | a, |
| const float | f | ||
| ) |
Definition at line 132 of file util_math_float2.h.
References Freestyle::a, and make_float2.
| ccl_device_inline float2 operator- | ( | const float2 & | a, |
| const float2 & | b | ||
| ) |
Definition at line 137 of file util_math_float2.h.
References Freestyle::a, make_float2, float2::x, and float2::y.
| ccl_device_inline float2 operator/ | ( | const float2 & | a, |
| const float2 & | b | ||
| ) |
Definition at line 117 of file util_math_float2.h.
References Freestyle::a, make_float2, float2::x, and float2::y.
| ccl_device_inline float2 operator/ | ( | const float2 & | a, |
| float | f | ||
| ) |
Definition at line 111 of file util_math_float2.h.
References Freestyle::a, and make_float2.
| ccl_device_inline float2 operator/ | ( | float | f, |
| const float2 & | a | ||
| ) |
Definition at line 106 of file util_math_float2.h.
References Freestyle::a, and make_float2.
| ccl_device_inline float2 operator/= | ( | float2 & | a, |
| const float2 & | b | ||
| ) |
Definition at line 157 of file util_math_float2.h.
References Freestyle::a.
| ccl_device_inline float2 operator/= | ( | float2 & | a, |
| float | f | ||
| ) |
Definition at line 162 of file util_math_float2.h.
References Freestyle::a.
| ccl_device_inline bool operator== | ( | const float2 & | a, |
| const float2 & | b | ||
| ) |
Definition at line 168 of file util_math_float2.h.
References Freestyle::a, float2::x, and float2::y.
| ccl_device_inline float2 safe_divide_float2_float | ( | const float2 | a, |
| const float | b | ||
| ) |
Definition at line 267 of file util_math_float2.h.
References Freestyle::a, and zero_float2().
Referenced by svm_node_tex_voronoi().
| ccl_device_inline float2 safe_normalize | ( | const float2 & | a | ) |
Definition at line 219 of file util_math_float2.h.
References Freestyle::a, len(), and t.
Referenced by bsdf_principled_hair_eval(), bsdf_principled_hair_sample(), LightManager::device_update_points(), mf_sample_vndf(), motion_triangle_smooth_normal(), Mesh::SubdFace::normal(), Mesh::pack_normals(), svm_mapping(), svm_node_normal_map(), svm_node_set_bump(), svm_node_tex_environment(), svm_vector_math(), triangle_light_pdf(), triangle_light_sample(), and triangle_smooth_normal().
| ccl_device_inline float2 zero_float2 | ( | ) |
Definition at line 75 of file util_math_float2.h.
References make_float2.
Referenced by Mesh::add_vertex(), Mesh::add_vertex_slow(), concentric_sample_disk(), direction_to_equirectangular_range(), NODE_DEFINE(), ObtainCacheParticleUV(), and safe_divide_float2_float().