Blender V5.3
float4 Struct Reference

#include <sky_math.h>

Public Member Functions

 float4 ()=default
 float4 (const float *ptr)
 float4 (const float(*ptr)[4])
 float4 (float value)
 float4 (int value)
 float4 (float x, float y, float z, float w)
 operator const float * () const
 operator float * ()
float length_squared () const
float length () const
void operator+= (const float4 &b)
void operator*= (const float4 &b)

Static Public Member Functions

static float distance (const float4 &a, const float4 &b)

Public Attributes

float x
float y
float z
float w

Friends

float4 operator* (const float4 &a, float b)
float4 operator* (float b, const float4 &a)
float4 operator/ (const float4 &a, float b)
float4 operator/ (float b, const float4 &a)
float4 operator* (const float4 &a, const float4 &b)
float4 operator/ (const float4 &a, const float4 &b)
float4 operator- (const float4 &a, const float4 &b)
float4 operator- (const float4 &a)
float4 operator+ (const float4 &a, const float4 &b)

Detailed Description

Definition at line 224 of file sky_math.h.

Constructor & Destructor Documentation

◆ float4() [1/6]

◆ float4() [2/6]

float4::float4 ( const float * ptr)
inline

Definition at line 229 of file sky_math.h.

References w, x, y, and z.

◆ float4() [3/6]

float4::float4 ( const float(*) ptr[4])
inline

Definition at line 231 of file sky_math.h.

References float, and float4().

◆ float4() [4/6]

float4::float4 ( float value)
inlineexplicit

Definition at line 233 of file sky_math.h.

References w, x, y, and z.

◆ float4() [5/6]

float4::float4 ( int value)
inlineexplicit

Definition at line 235 of file sky_math.h.

References w, x, y, and z.

◆ float4() [6/6]

float4::float4 ( float x,
float y,
float z,
float w )
inline

Definition at line 237 of file sky_math.h.

References w, x, y, and z.

Member Function Documentation

◆ distance()

float float4::distance ( const float4 & a,
const float4 & b )
inlinestatic

Definition at line 299 of file sky_math.h.

References b, and float4().

◆ length()

◆ length_squared()

float float4::length_squared ( ) const
inline

Definition at line 289 of file sky_math.h.

References w, x, y, and z.

Referenced by len_squared(), and length().

◆ operator const float *()

float4::operator const float * ( ) const
inline

Definition at line 239 of file sky_math.h.

References x.

◆ operator float *()

float4::operator float * ( )
inline

Definition at line 244 of file sky_math.h.

References x.

◆ operator*=()

void float4::operator*= ( const float4 & b)
inline

Definition at line 317 of file sky_math.h.

References b, and float4().

◆ operator+=()

void float4::operator+= ( const float4 & b)
inline

Definition at line 309 of file sky_math.h.

References b, and float4().

◆ operator* [1/3]

float4 operator* ( const float4 & a,
const float4 & b )
friend

Definition at line 269 of file sky_math.h.

References b, float4(), w, x, y, and z.

◆ operator* [2/3]

float4 operator* ( const float4 & a,
float b )
friend

Definition at line 249 of file sky_math.h.

References b, float4(), w, x, y, and z.

◆ operator* [3/3]

float4 operator* ( float b,
const float4 & a )
friend

Definition at line 254 of file sky_math.h.

References b, float4(), w, x, y, and z.

◆ operator+

float4 operator+ ( const float4 & a,
const float4 & b )
friend

Definition at line 304 of file sky_math.h.

References b, float4(), w, x, y, and z.

◆ operator- [1/2]

float4 operator- ( const float4 & a)
friend

Definition at line 284 of file sky_math.h.

References float4(), w, x, y, and z.

◆ operator- [2/2]

float4 operator- ( const float4 & a,
const float4 & b )
friend

Definition at line 279 of file sky_math.h.

References b, float4(), w, x, y, and z.

◆ operator/ [1/3]

float4 operator/ ( const float4 & a,
const float4 & b )
friend

Definition at line 274 of file sky_math.h.

References b, float4(), w, x, y, and z.

◆ operator/ [2/3]

float4 operator/ ( const float4 & a,
float b )
friend

Definition at line 259 of file sky_math.h.

References b, float4(), w, x, y, and z.

◆ operator/ [3/3]

float4 operator/ ( float b,
const float4 & a )
friend

Definition at line 264 of file sky_math.h.

References b, float4(), w, x, y, and z.

Member Data Documentation

◆ w

float float4::w

Definition at line 225 of file sky_math.h.

Referenced by __float4_as_int4(), SVMCompiler::add_node_data_float4(), area_light_rect_sample(), attr_load_orco(), eevee::raytracing::denoise::bilinear_weights_from_subpixel_coord(), PointCloud::Point::bounds_grow(), BVH(), BVH(), BVH(), BVH(), bvh_aligned_node_intersect(), camera_direction_from_point(), camera_distance(), camera_position(), camera_z_depth(), cast(), central_cylindrical_to_direction(), builtin::polyline::Resources::clip_line_point_homogeneous_space(), clip_ray(), color_float4_to_uchar4(), color_linear_to_srgb_v4(), color_srgb_to_linear_v4(), compatible_mod(), compatible_mod(), compatible_pow(), BVHUnaligned::compute_node_transform(), builtin::mipmaps::convert< float4, float >(), convert_camera_transform(), convert_srgb_tx(), copy_matrix(), copy_matrix(), copy_v4_v4(), curve_point_as_float4(), CurveSegmentMotionCV(), cycles_precompute(), direction_to_central_cylindrical(), direction_to_equirectangular_range(), direction_to_equirectangular_range(), overlay::armature::shape::wire::Resources::do_vertex(), dof_coc_select(), dot(), drw_debug_matrix(), drw_debug_matrix_as_bbox(), overlay::armature::shape::outline::Resources::emit_vertex(), ensure_finite(), equirectangular_range_to_direction(), euler_to_transform(), curves::bezier::evaluate_segment< InterpPosition, float4 >(), exp(), export_hair_curves_motion(), ExportCurveSegmentsMotion(), fabs(), fallback_pow(), film_get_pass_pixel_cryptomatte(), film_get_pass_pixel_motion(), film_get_pass_pixel_shadow_catcher_matte_with_shadow(), film_write_pass_float4(), float4(), float4(), float4(), float4(), float4_to_half4(), floor(), floorfrac(), fmod(), draw::frustum_culling_sphere_calc(), builtin::polyline::Resources::geometry_main(), overlay::armature::shape::wire::Resources::geometry_main(), overlay::armature::envelope::outline::get_outline_point(), builtin::annotation::get_Z_depth(), hash_float4_to_float(), hash_float4_to_float2(), hash_float4_to_float3(), hash_float4_to_float4(), hash_value_vec4_to_uint(), hash_vec4_to_float(), hsl_to_rgb(), hsv_to_rgb(), eevee::light::culling::CullingTile::intersect(), workbench::shadow::visibility::Resources::intersects_near_plane(), invert(), workbench::shadow::visibility::Resources::is_visible(), is_zero(), length_squared(), line_plane_intersect_dist(), make_int4(), make_projection(), make_transform(), make_vfloat8(), mat22_determinant(), mat22_inverse(), mat22_mult(), mat22_mult(), max(), max(), min(), node_attribute(), node_attribute_temperature(), node_radial_tiling(), node_tex_sky_nishita(), noise_perlin(), object_location(), operator*, operator*, operator*, operator*(), operator*(), operator+, operator+(), operator-, operator-, operator-(), operator-(), operator/, operator/, operator/, operator/(), operator/(), operator<(), operator<<(), operator<=(), packed_float4::operator=(), operator==(), operator>(), operator>=(), operator^(), SubdQuaternion::output(), spherical_harmonics::pack(), ViewMatrices::perspective_divide(), draw::Curves::point_get(), draw::PointCloud::point_get(), workbench::dof::prepare(), print_float4(), grease_pencil::vfx::Glow::process(), overlay::Uniform::proj(), project_point(), project_point_safe(), projection_transpose(), builtin::polyline::Resources::pull_vertex_data(), eevee::raytracing::denoise::DenoiseTemporal::radiance_history_sample(), raytrace_sample_screen(), raytrace_sample_screen(), raytrace_screen_2(), reduce_add(), reduce_add(), reduce_add(), reduce_max(), reduce_max(), reduce_min(), reduce_min(), eevee::fast_gi::resolve(), sequencer::scope::resolve_frag(), rgb_to_hsl(), rgb_to_hsv(), rgba_to_nchannels(), safe_divide(), eevee::LightprobeVolumeRenderData::sample_atlas(), eevee::film::Film::sample_catmull_rom(), eevee::dof::setup::stabilize::Resources::sample_history(), eevee::fast_gi::SampleInput::sample_normal_get(), saturate(), select(), builtin::widget::shadow_vert(), snoise(), snoise_4d(), eevee::ltc::detail::solve_cubic(), eevee::raytracing::denoise::spatial_main(), sqrt(), svm_image_texture(), svm_node_attr_surface_eval(), svm_node_radial_tiling(), svm_node_rgb_ramp(), svm_node_tex_environment(), svm_node_tex_image(), svm_node_tex_image_box(), tabulated_sobol_generate_4D(), eevee::raytracing::denoise::temporal_main(), TEST(), TEST_F(), TEST_F(), eevee::raytrace::fallback::trace(), eevee::raytrace::planar::trace(), eevee::raytrace::screen::trace(), transform_decompose(), transform_inverse_impl(), transform_motion_array_interpolate(), transform_motion_decompose(), transform_to_quat(), spherical_harmonics::unpack(), eevee::hiz::update_main(), eevee::camera::uv_from_view(), overlay::armature::envelope::outline::vert(), overlay::armature::stick_bone::vert(), Camera::viewplane_bounds_get(), volume_history_uvw_get(), voronoi_distance(), dual< float4 >::w(), and wrap().

◆ x

float float4::x

Definition at line 225 of file sky_math.h.

Referenced by __float4_as_int4(), SVMCompiler::add_node_data_float4(), area_light_rect_sample(), as_float2(), attribute_data_fetch_normals(), eevee::raytracing::denoise::bilinear_weights_from_subpixel_coord(), BVH(), BVH(), BVH(), BVH(), bvh_aligned_node_intersect(), bvh_unaligned_node_intersect(), calculate_out_variables(), cast(), central_cylindrical_to_direction(), closure_to_rgba_forward(), closure_to_rgba_hybrid(), color_float4_to_uchar4(), color_linear_to_srgb_v4(), color_srgb_to_linear_v4(), eevee::dof::setup::stabilize::comp_main(), compare_color_equal(), compare_color_not_equal(), compatible_mod(), compatible_mod(), compatible_pow(), builtin::mipmaps::convert< float, float4 >(), builtin::mipmaps::convert< float4, float >(), convert_srgb_tx(), copy_matrix(), copy_matrix(), copy_v4_v4(), cross(), direction_to_central_cylindrical(), direction_to_equirectangular_range(), direction_to_equirectangular_range(), builtin::widget::Widget::do_widget(), dof_coc_select(), dot(), ensure_finite(), equirectangular_range_to_direction(), euler_to_transform(), exp(), fabs(), fallback_pow(), film_get_pass_pixel_cryptomatte(), film_get_pass_pixel_motion(), film_get_pass_pixel_shadow_catcher_matte_with_shadow(), film_write_pass_float4(), ImageMetaData::finalize(), float4(), float4(), float4(), float4(), float4_to_half4(), floor(), floorfrac(), fmod(), get_best_dimension(), get_float4(), half4_to_float4(), hash_float4_to_float(), hash_float4_to_float2(), hash_float4_to_float3(), hash_float4_to_float4(), hash_value_vec4_to_uint(), hash_vec4_to_float(), eevee::dof::setup::stabilize::Resources::history_blend_factor(), builtin::annotation::is_equal(), is_zero(), length_squared(), lookup_instance_property(), builtin::socket::main_vert(), make_float3(), make_int4(), make_projection(), make_transform(), make_vfloat8(), mat22_determinant(), mat22_inverse(), mat22_mult(), mat22_mult(), max(), max(), min(), mix_color(), mix_hue(), node_attribute_density(), node_attribute_flame(), node_attribute_temperature(), node_mix_color(), node_mix_hue(), node_radial_tiling(), node_tex_magic(), node_tex_sky_nishita(), node_volume_principled(), noise_perlin(), ObtainCacheParticleVcol(), operator const float *(), operator float *(), operator*, operator*, operator*, operator*(), operator*(), operator+, operator+(), operator-, operator-, operator-(), operator-(), operator/, operator/, operator/, operator/(), operator/(), operator<(), operator<<(), operator<=(), packed_float4::operator=(), operator==(), operator>(), operator>=(), operator^(), SubdQuaternion::output(), workbench::dof::prepare(), primitive_motion_vector_backward_depth_delta(), print_float4(), grease_pencil::vfx::Glow::process(), projection_transpose(), builtin::polyline::Resources::pull_vertex_data(), eevee::raytracing::denoise::DenoiseTemporal::radiance_history_sample(), raytrace_screen_2(), reduce_add(), reduce_add(), reduce_add(), reduce_max(), reduce_max(), reduce_min(), reduce_min(), eevee::fast_gi::resolve(), eevee::CameraVelocity::resolve_local(), rgb_to_hsv(), rgba_to_nchannels(), safe_divide(), eevee::film::safe_divide_even_color(), eevee::film::Film::sample_accum_combined(), eevee::film::Film::sample_catmull_rom(), eevee::dof::setup::stabilize::Resources::sample_history(), saturate(), select(), set_float4(), builtin::widget::shadow_vert(), snoise(), snoise_4d(), eevee::ltc::detail::solve_cubic(), eevee::dof::setup::stabilize::Resources::spatial_filtering(), eevee::raytracing::denoise::spatial_main(), sqrt(), eevee::film::Film::store_combined(), eevee::Cryptomatte::store_film_sample(), eevee::surf_shadow(), svm_node_radial_tiling(), svm_node_tex_environment(), svm_node_tex_image_box(), tabulated_sobol_generate_4D(), TEST(), TEST_F(), TEST_F(), transform_direction(), transform_inverse_impl(), transform_point(), transform_to_quat(), spherical_harmonics::unpack(), gbuffer::Reflection::unpack_additional(), gbuffer::ReflectionColorless::unpack_additional(), gbuffer::Refraction::unpack_additional(), gbuffer::RefractionColorless::unpack_additional(), gbuffer::ThinRefraction::unpack_additional(), gbuffer::ThinRefractionColorless::unpack_additional(), eevee::hiz::update_main(), voronoi_distance(), wrap(), and dual< float4 >::x().

◆ y

float float4::y

Definition at line 225 of file sky_math.h.

Referenced by __float4_as_int4(), SVMCompiler::add_node_data_float4(), area_light_rect_sample(), as_float2(), attribute_data_fetch_normals(), eevee::raytracing::denoise::bilinear_weights_from_subpixel_coord(), BVH(), BVH(), BVH(), BVH(), bvh_aligned_node_intersect(), bvh_unaligned_node_intersect(), calculate_out_variables(), cast(), central_cylindrical_to_direction(), color_float4_to_uchar4(), color_linear_to_srgb_v4(), color_srgb_to_linear_v4(), compare_color_equal(), compare_color_not_equal(), compatible_mod(), compatible_mod(), compatible_pow(), builtin::mipmaps::convert< float4, float >(), convert_srgb_tx(), copy_matrix(), copy_matrix(), copy_v4_v4(), cross(), direction_to_central_cylindrical(), direction_to_equirectangular_range(), direction_to_equirectangular_range(), dof_coc_select(), dot(), ensure_finite(), equirectangular_range_to_direction(), euler_to_transform(), exp(), fabs(), fallback_pow(), film_get_pass_pixel_cryptomatte(), film_get_pass_pixel_motion(), film_get_pass_pixel_shadow_catcher_matte_with_shadow(), film_write_pass_float4(), float4(), float4(), float4(), float4(), float4_to_half4(), floor(), floorfrac(), fmod(), get_best_dimension(), hash_float4_to_float(), hash_float4_to_float2(), hash_float4_to_float3(), hash_float4_to_float4(), hash_value_vec4_to_uint(), hash_vec4_to_float(), builtin::annotation::is_equal(), is_zero(), length_squared(), make_float3(), make_int4(), make_projection(), make_transform(), make_vfloat8(), mat22_determinant(), mat22_inverse(), mat22_mult(), mat22_mult(), max(), max(), min(), mix_color(), mix_hue(), mix_sat(), node_attribute_temperature(), node_mix_color(), node_mix_hue(), node_mix_sat(), node_radial_tiling(), node_tex_magic(), node_tex_sky_nishita(), noise_perlin(), operator*, operator*, operator*, operator*(), operator*(), operator+, operator+(), operator-, operator-, operator-(), operator-(), operator/, operator/, operator/, operator/(), operator/(), operator<(), operator<<(), operator<=(), packed_float4::operator=(), operator==(), operator>(), operator>=(), operator^(), SubdQuaternion::output(), workbench::dof::prepare(), primitive_motion_vector_backward_depth_delta(), print_float4(), grease_pencil::vfx::Glow::process(), projection_transpose(), builtin::polyline::Resources::pull_vertex_data(), eevee::raytracing::denoise::DenoiseTemporal::radiance_history_sample(), sequencer::scope::raster_comp(), raytrace_screen_2(), reduce_add(), reduce_add(), reduce_add(), reduce_max(), reduce_max(), reduce_min(), reduce_min(), eevee::fast_gi::resolve(), rgb_to_hsv(), rgba_to_nchannels(), safe_divide(), eevee::film::safe_divide_even_color(), eevee::film::Film::sample_catmull_rom(), eevee::dof::setup::stabilize::Resources::sample_history(), saturate(), select(), snoise(), snoise_4d(), eevee::ltc::detail::solve_cubic(), eevee::raytracing::denoise::spatial_main(), sqrt(), svm_node_radial_tiling(), svm_node_tex_environment(), svm_node_tex_image_box(), tabulated_sobol_generate_4D(), TEST(), TEST_F(), TEST_F(), transform_direction(), transform_inverse_impl(), transform_motion_array_interpolate(), transform_point(), transform_to_quat(), spherical_harmonics::unpack(), gbuffer::Refraction::unpack_additional(), gbuffer::RefractionColorless::unpack_additional(), eevee::hiz::update_main(), voronoi_distance(), wrap(), and dual< float4 >::y().

◆ z

float float4::z

Definition at line 225 of file sky_math.h.

Referenced by __float4_as_int4(), SVMCompiler::add_node_data_float4(), area_light_rect_sample(), attribute_data_fetch_normals(), eevee::raytracing::denoise::bilinear_weights_from_subpixel_coord(), BVH(), BVH(), BVH(), BVH(), bvh_aligned_node_intersect(), camera_direction_from_point(), camera_distance(), cast(), central_cylindrical_to_direction(), builtin::polyline::Resources::clip_line_point_homogeneous_space(), color_float4_to_uchar4(), color_linear_to_srgb_v4(), color_srgb_to_linear_v4(), compare_color_equal(), compare_color_not_equal(), compatible_mod(), compatible_mod(), compatible_pow(), builtin::mipmaps::convert< float4, float >(), convert_camera_transform(), convert_srgb_tx(), copy_matrix(), copy_matrix(), copy_v4_v4(), cross(), direction_to_central_cylindrical(), direction_to_equirectangular_range(), direction_to_equirectangular_range(), dof_coc_select(), dot(), overlay::armature::shape::outline::Resources::emit_vertex(), ensure_finite(), equirectangular_range_to_direction(), euler_to_transform(), exp(), workbench::shadow::GeometryShaderEmulator::export_vertex(), fabs(), fallback_pow(), film_get_pass_pixel_cryptomatte(), film_get_pass_pixel_motion(), film_get_pass_pixel_shadow_catcher_matte_with_shadow(), film_write_pass_float4(), float4(), float4(), float4(), float4(), float4_to_half4(), floor(), floorfrac(), fmod(), overlay::armature::shape::wire::Resources::geometry_main(), get_best_dimension(), builtin::annotation::get_Z_depth(), hash_float4_to_float(), hash_float4_to_float2(), hash_float4_to_float3(), hash_float4_to_float4(), hash_value_vec4_to_uint(), hash_vec4_to_float(), builtin::annotation::is_equal(), is_zero(), length_squared(), make_float3(), make_int4(), make_projection(), make_transform(), make_vfloat8(), mat22_determinant(), mat22_inverse(), mat22_mult(), mat22_mult(), max(), max(), min(), mix_val(), node_attribute_temperature(), node_mix_val(), node_radial_tiling(), node_tex_magic(), node_tex_sky_nishita(), noise_perlin(), operator*, operator*, operator*, operator*(), operator*(), operator+, operator+(), operator-, operator-, operator-(), operator-(), operator/, operator/, operator/, operator/(), operator/(), operator<(), operator<<(), operator<=(), packed_float4::operator=(), operator==(), operator>(), operator>=(), operator^(), SubdQuaternion::output(), workbench::dof::prepare(), print_float4(), projection_transpose(), builtin::polyline::Resources::pull_vertex_data(), eevee::raytracing::denoise::DenoiseTemporal::radiance_history_sample(), sequencer::scope::raster_comp(), raytrace_planar(), raytrace_screen_2(), reduce_add(), reduce_add(), reduce_add(), reduce_max(), reduce_max(), reduce_min(), reduce_min(), eevee::fast_gi::resolve(), rgba_to_nchannels(), safe_divide(), eevee::film::safe_divide_even_color(), eevee::LightprobeVolumeRenderData::sample_atlas(), eevee::film::Film::sample_catmull_rom(), eevee::dof::setup::stabilize::Resources::sample_history(), saturate(), select(), snoise(), snoise_4d(), eevee::ltc::detail::solve_cubic(), eevee::raytracing::denoise::spatial_main(), sqrt(), svm_node_radial_tiling(), svm_node_tex_environment(), svm_node_tex_image_box(), tabulated_sobol_generate_4D(), TEST(), TEST_F(), TEST_F(), reverse_z::transform(), transform_direction(), transform_inverse_impl(), transform_motion_array_interpolate(), transform_point(), transform_to_quat(), spherical_harmonics::unpack(), eevee::hiz::update_main(), overlay::armature::stick_bone::vert(), overlay::edit_vert::vert(), overlay::outline_prepass::vert(), overlay::wireframe::vert(), eevee::debug::irradiance_grid::vert_main(), eevee::lightprobe::sphere::display::vert_main(), eevee::lightprobe::volume::display::vert_main(), builtin::annotation::Resources::vertex_main(), voronoi_distance(), wrap(), and dual< float4 >::z().


The documentation for this struct was generated from the following file: