Blender V5.0
float3 Struct Reference

#include <sky_math.h>

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

float x
float y
float z

Friends

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

Detailed Description

Definition at line 135 of file sky_math.h.

Constructor & Destructor Documentation

◆ float3() [1/6]

◆ float3() [2/6]

float3::float3 ( const float * ptr)
inline

Definition at line 140 of file sky_math.h.

References ptr, x, y, and z.

◆ float3() [3/6]

float3::float3 ( const float(*) ptr[3])
inline

Definition at line 142 of file sky_math.h.

References float, float3(), and ptr.

◆ float3() [4/6]

float3::float3 ( float value)
inlineexplicit

Definition at line 144 of file sky_math.h.

References x, y, and z.

◆ float3() [5/6]

float3::float3 ( int value)
inlineexplicit

Definition at line 146 of file sky_math.h.

References x, y, and z.

◆ float3() [6/6]

float3::float3 ( float x,
float y,
float z )
inline

Definition at line 148 of file sky_math.h.

References x, y, and z.

Member Function Documentation

◆ distance()

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

Definition at line 200 of file sky_math.h.

References b, and float3().

◆ length()

float float3::length ( ) const
inline

◆ length_squared()

float float3::length_squared ( ) const
inline

Definition at line 190 of file sky_math.h.

References x, y, and z.

Referenced by len_squared(), and length().

◆ operator const float *()

float3::operator const float * ( ) const
inline

Definition at line 150 of file sky_math.h.

References x.

◆ operator float *()

float3::operator float * ( )
inline

Definition at line 155 of file sky_math.h.

References x.

◆ operator+=()

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

Definition at line 210 of file sky_math.h.

References b, and float3().

◆ operator* [1/3]

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

Definition at line 217 of file sky_math.h.

References b, float3(), x, y, and z.

◆ operator* [2/3]

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

Definition at line 160 of file sky_math.h.

References b, float3(), x, y, and z.

◆ operator* [3/3]

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

Definition at line 165 of file sky_math.h.

References b, float3(), x, y, and z.

◆ operator+

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

Definition at line 205 of file sky_math.h.

References b, float3(), x, y, and z.

◆ operator- [1/2]

float3 operator- ( const float3 & a)
friend

Definition at line 185 of file sky_math.h.

References float3(), x, y, and z.

◆ operator- [2/2]

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

Definition at line 180 of file sky_math.h.

References b, float3(), x, y, and z.

◆ operator/ [1/2]

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

Definition at line 170 of file sky_math.h.

References b, float3(), x, y, and z.

◆ operator/ [2/2]

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

Definition at line 175 of file sky_math.h.

References b, float3(), x, y, and z.

Member Data Documentation

◆ x

float float3::x

Definition at line 136 of file sky_math.h.

Referenced by SVMCompiler::add_node(), any_zero(), atmosphere_intersection(), attr_create_pointiness(), Hair::Curve::bounds_grow(), Hair::Curve::bounds_grow(), Hair::Curve::bounds_grow(), Hair::Curve::bounds_grow(), bsdf_eval(), bsdf_hair_chiang_eval(), bsdf_hair_chiang_sample(), bsdf_hair_huang_eval_r(), bsdf_hair_huang_sample(), bsdf_sheen_eval(), bsdf_sheen_sample(), bvh_aligned_node_intersect(), bvh_clamp_direction(), bvh_unaligned_node_intersect_child(), BVHSpatialSplit::BVHSpatialSplit(), camera_panorama_direction(), camera_sample_panorama(), camera_sample_perspective(), ceil(), color_float_to_byte(), color_linear_to_srgb_v3(), color_srgb_to_linear_v3(), compute_3d_orientation(), BVHUnaligned::compute_node_transform(), ShaderManager::compute_thin_film_table(), TextureMapping::compute_transform(), HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCycles< float3 >(), copy_v3_v3(), cross(), curvebounds(), ShaderManager::device_update_common(), ObjectManager::device_update_object_transform(), differential_dudv(), direction_to_central_cylindrical(), direction_to_equiangular_cubemap_face(), direction_to_equirectangular_range(), direction_to_fisheye_equidistant(), direction_to_fisheye_equisolid(), direction_to_fisheye_lens_polynomial(), direction_to_mirrorball(), direction_to_spherical(), dot(), dot(), dot_xy(), ensure_finite(), euler_to_transform(), fabs(), fill_shader_input(), film_apply_pass_pixel_overlays_rgba(), film_get_pass_pixel_combined(), film_get_pass_pixel_float3(), film_get_pass_pixel_float4(), film_get_pass_pixel_light_path(), film_get_pass_pixel_rgbe(), film_get_pass_pixel_shadow_catcher(), film_overwrite_pass_float3(), film_write_adaptive_buffer(), film_write_pass_float3(), float3(), float3(), float3(), float3(), float3_as_uint3(), floor(), fmod(), fmod(), get_float3(), MikkMeshWrapper::GetNormal(), MikkMeshWrapper::GetPosition(), BoundBox::grow_safe(), BoundBox::grow_safe(), h_to_gamma(), BoundBox::half_area(), hash_float3_to_float(), hash_float3_to_float2(), hash_float3_to_float3(), hsl_to_rgb(), hsv_to_rgb(), integrate_camera_sample(), BoundBox::intersects(), is_zero(), isequal_mask(), kernel_background_evaluate(), kernel_embree_setup_ray(), length_squared(), ConstantFolder::make_constant_clamp(), make_float2(), make_float4(), make_float4(), make_homogeneous(), make_int3(), make_int4(), make_transform_frame(), map_to_sphere(), map_to_tube(), max(), microfacet_beckmann_sample_vndf(), microfacet_ggx_sample_vndf(), min(), mirrorball_to_direction(), object_asset_dimensions_property(), ObtainCacheParticleData(), operator const float *(), operator float *(), VertexAverageComparator::operator()(), operator*, operator*, operator*, operator*(), operator*(), operator*(), operator+, operator+(), operator-, operator-, operator-(), operator-(), operator/, operator/, operator/(), operator/(), operator/(), operator<(), operator<<(), packed_float3::operator=(), operator==(), operator==(), operator>(), operator>=(), BVH2::pack_aligned_node(), phase_fournier_forand(), phase_fournier_forand_newton(), precompute_ggx_gen_schlick_s(), primitive_motion_vector(), primitive_ptex(), print_dual3(), print_emitters(), print_float3(), ray_offset(), ray_triangle_cross(), ray_triangle_dot(), reciprocal(), reduce_add(), reduce_add(), reduce_max(), reduce_min(), rgb_to_hsl(), rgb_to_hsv(), rgb_to_rgbe(), rotate_around_axis(), round(), safe_divide(), safe_divide_even_color(), safe_divide_shadow_catcher(), safe_pow(), saturate(), select(), set_float3(), SKY_multiple_scattering_precompute_sun(), SKY_multiple_scattering_precompute_texture(), SKY_single_scattering_precompute_sun(), SKY_single_scattering_precompute_texture(), sky_spherical_coordinates(), snoise_3d(), spec_to_xyz(), spot_light_uv(), sqrt(), sun_radiation(), svm_brick(), svm_brightness_contrast(), svm_checker(), svm_gradient(), svm_magic(), svm_math_gamma_color(), svm_mix_burn(), svm_mix_color(), svm_mix_div(), svm_mix_dodge(), svm_mix_hue(), svm_mix_overlay(), svm_node_curves(), svm_node_hsv(), svm_node_invert(), svm_node_normal(), svm_node_normal_map(), svm_node_radial_tiling(), svm_node_separate_color(), svm_node_tangent(), svm_node_tex_gabor(), svm_node_tex_image(), svm_node_tex_image_box(), svm_node_tex_sky(), svm_node_vector_displacement(), svm_node_vector_map_range(), svm_wave(), TEST(), TEST(), TEST_F(), to_global(), ColorSpaceManager::to_scene_linear(), transform_decompose(), transform_euler(), transform_perspective(), transform_perspective_deriv(), transform_perspective_direction(), transform_rotate(), transform_scale(), transform_set_column(), transform_translate(), BoundBox::transformed(), TYPED_TEST(), OctreeNode::visualize(), volume_fournier_forand_setup(), and Camera::world_to_raster_size().

◆ y

float float3::y

Definition at line 136 of file sky_math.h.

Referenced by SVMCompiler::add_node(), any_zero(), atmosphere_intersection(), attr_create_pointiness(), Hair::Curve::bounds_grow(), Hair::Curve::bounds_grow(), Hair::Curve::bounds_grow(), Hair::Curve::bounds_grow(), bsdf_eval(), bsdf_hair_chiang_eval(), bsdf_hair_chiang_sample(), bsdf_hair_huang_albedo(), bsdf_hair_huang_sample(), bsdf_sheen_eval(), bsdf_sheen_sample(), bvh_aligned_node_intersect(), bvh_clamp_direction(), bvh_unaligned_node_intersect_child(), BVHSpatialSplit::BVHSpatialSplit(), camera_panorama_direction(), camera_sample_perspective(), ceil(), color_float_to_byte(), color_linear_to_srgb_v3(), color_srgb_to_linear_v3(), compute_3d_orientation(), BVHUnaligned::compute_node_transform(), ShaderManager::compute_thin_film_table(), TextureMapping::compute_transform(), HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCycles< float3 >(), copy_v3_v3(), cross(), ShaderManager::device_update_common(), ObjectManager::device_update_object_transform(), differential_dudv(), direction_to_central_cylindrical(), direction_to_equiangular_cubemap_face(), direction_to_equirectangular_range(), direction_to_fisheye_equidistant(), direction_to_fisheye_equisolid(), direction_to_fisheye_lens_polynomial(), direction_to_mirrorball(), direction_to_spherical(), dot(), dot(), dot_xy(), ensure_finite(), euler_to_transform(), fabs(), fill_shader_input(), film_apply_pass_pixel_overlays_rgba(), film_get_pass_pixel_combined(), film_get_pass_pixel_float3(), film_get_pass_pixel_float4(), film_get_pass_pixel_light_path(), film_get_pass_pixel_rgbe(), film_get_pass_pixel_shadow_catcher(), film_overwrite_pass_float3(), film_write_adaptive_buffer(), film_write_pass_float3(), float3(), float3(), float3(), float3(), float3_as_uint3(), floor(), fmod(), fmod(), MikkMeshWrapper::GetNormal(), MikkMeshWrapper::GetPosition(), BoundBox::grow_safe(), BoundBox::grow_safe(), BoundBox::half_area(), hash_float3_to_float(), hash_float3_to_float2(), hash_float3_to_float3(), hsl_to_rgb(), hsv_to_rgb(), integrate_camera_sample(), BoundBox::intersects(), is_zero(), isequal_mask(), kernel_background_evaluate(), kernel_embree_setup_ray(), length_squared(), ConstantFolder::make_constant_clamp(), make_float2(), make_float4(), make_float4(), make_homogeneous(), make_int3(), make_int4(), make_transform_frame(), map_to_sphere(), map_to_tube(), max(), microfacet_beckmann_sample_vndf(), microfacet_ggx_sample_vndf(), min(), mirrorball_to_direction(), VertexAverageComparator::operator()(), operator*, operator*, operator*, operator*(), operator*(), operator*(), operator+, operator+(), operator-, operator-, operator-(), operator-(), operator/, operator/, operator/(), operator/(), operator/(), operator<(), operator<<(), packed_float3::operator=(), operator==(), operator==(), operator>(), operator>=(), BVH2::pack_aligned_node(), phase_fournier_forand(), phase_fournier_forand_newton(), precompute_ggx_gen_schlick_s(), primitive_motion_vector(), primitive_ptex(), print_dual3(), print_emitters(), print_float3(), ray_offset(), ray_triangle_cross(), ray_triangle_dot(), reciprocal(), reduce_add(), reduce_add(), reduce_max(), reduce_min(), rgb_to_hsl(), rgb_to_hsv(), rgb_to_rgbe(), rotate_around_axis(), round(), safe_divide(), safe_divide_even_color(), safe_divide_shadow_catcher(), safe_pow(), saturate(), select(), SKY_multiple_scattering_precompute_sun(), SKY_multiple_scattering_precompute_texture(), SKY_single_scattering_precompute_sun(), SKY_single_scattering_precompute_texture(), sky_spherical_coordinates(), snoise_3d(), spec_to_xyz(), spot_light_uv(), sqrt(), sun_radiation(), svm_brick(), svm_brightness_contrast(), svm_checker(), svm_gradient(), svm_magic(), svm_math_gamma_color(), svm_mix_burn(), svm_mix_color(), svm_mix_div(), svm_mix_dodge(), svm_mix_hue(), svm_mix_overlay(), svm_mix_sat(), svm_node_curves(), svm_node_hsv(), svm_node_invert(), svm_node_normal(), svm_node_normal_map(), svm_node_radial_tiling(), svm_node_separate_color(), svm_node_tangent(), svm_node_tex_gabor(), svm_node_tex_image(), svm_node_tex_image_box(), svm_node_tex_sky(), svm_node_vector_displacement(), svm_node_vector_map_range(), svm_wave(), TEST(), TEST(), TEST_F(), to_global(), transform_decompose(), transform_euler(), transform_perspective(), transform_perspective_deriv(), transform_perspective_direction(), transform_rotate(), transform_scale(), transform_set_column(), transform_translate(), BoundBox::transformed(), TYPED_TEST(), OctreeNode::visualize(), volume_fournier_forand_setup(), and Camera::world_to_raster_size().

◆ z

float float3::z

Definition at line 136 of file sky_math.h.

Referenced by SVMCompiler::add_node(), any_zero(), atmosphere_intersection(), attr_create_pointiness(), Hair::Curve::bounds_grow(), Hair::Curve::bounds_grow(), Hair::Curve::bounds_grow(), Hair::Curve::bounds_grow(), bsdf_eval(), bsdf_hair_chiang_eval(), bsdf_hair_chiang_sample(), bsdf_hair_huang_eval_r(), bsdf_hair_huang_sample(), bsdf_microfacet_sample(), bsdf_sheen_eval(), bsdf_sheen_sample(), bvh_aligned_node_intersect(), bvh_clamp_direction(), bvh_unaligned_node_intersect_child(), BVHSpatialSplit::BVHSpatialSplit(), camera_z_depth(), ceil(), color_float_to_byte(), color_linear_to_srgb_v3(), color_srgb_to_linear_v3(), compute_3d_orientation(), BVHUnaligned::compute_node_transform(), ShaderManager::compute_thin_film_table(), TextureMapping::compute_transform(), HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCycles< float3 >(), copy_v3_v3(), cross(), ShaderManager::device_update_common(), ObjectManager::device_update_object_transform(), differential_dudv(), direction_to_central_cylindrical(), direction_to_equiangular_cubemap_face(), direction_to_equirectangular_range(), direction_to_fisheye_equidistant(), direction_to_fisheye_equisolid(), direction_to_fisheye_lens_polynomial(), direction_to_mirrorball(), direction_to_spherical(), dot(), dot(), ensure_finite(), euler_to_transform(), fabs(), fill_shader_input(), film_apply_pass_pixel_overlays_rgba(), film_get_pass_pixel_combined(), film_get_pass_pixel_float3(), film_get_pass_pixel_float4(), film_get_pass_pixel_light_path(), film_get_pass_pixel_rgbe(), film_get_pass_pixel_shadow_catcher(), film_overwrite_pass_float3(), film_write_adaptive_buffer(), film_write_pass_float3(), float3(), float3(), float3(), float3(), float3_as_uint3(), floor(), fmod(), fmod(), MikkMeshWrapper::GetNormal(), MikkMeshWrapper::GetPosition(), BoundBox::grow_safe(), BoundBox::grow_safe(), h_to_gamma(), BoundBox::half_area(), hash_float3_to_float(), hash_float3_to_float2(), hash_float3_to_float3(), hsl_to_rgb(), hsv_to_rgb(), integrate_camera_sample(), BoundBox::intersects(), is_zero(), isequal_mask(), kernel_background_evaluate(), kernel_embree_setup_ray(), length_squared(), light_sample_from_position(), light_sample_from_volume_segment(), ConstantFolder::make_constant_clamp(), make_float4(), make_float4(), make_homogeneous(), make_int3(), make_int4(), make_transform_frame(), map_to_sphere(), map_to_tube(), max(), microfacet_beckmann_sample_vndf(), microfacet_ggx_sample_vndf(), min(), mirrorball_to_direction(), VertexAverageComparator::operator()(), operator*, operator*, operator*, operator*(), operator*(), operator*(), operator+, operator+(), operator-, operator-, operator-(), operator-(), operator/, operator/, operator/(), operator/(), operator/(), operator<(), operator<<(), packed_float3::operator=(), operator==(), operator==(), operator>(), operator>=(), BVH2::pack_aligned_node(), phase_fournier_forand(), phase_fournier_forand_newton(), print_dual3(), print_emitters(), print_float3(), ray_offset(), ray_triangle_cross(), ray_triangle_dot(), reciprocal(), reduce_add(), reduce_add(), reduce_max(), reduce_min(), rgb_to_hsl(), rgb_to_hsv(), rgb_to_rgbe(), rotate_around_axis(), round(), safe_divide(), safe_divide_even_color(), safe_divide_shadow_catcher(), safe_pow(), saturate(), select(), SKY_multiple_scattering_precompute_sun(), SKY_multiple_scattering_precompute_texture(), SKY_single_scattering_precompute_sun(), SKY_single_scattering_precompute_texture(), sky_spherical_coordinates(), snoise_3d(), spec_to_xyz(), spot_light_attenuation(), spot_light_to_local(), spot_light_uv(), sqrt(), surface_intersection(), svm_brightness_contrast(), svm_checker(), svm_gradient(), svm_magic(), svm_math_gamma_color(), svm_mix_burn(), svm_mix_div(), svm_mix_dodge(), svm_mix_overlay(), svm_mix_val(), svm_node_curves(), svm_node_hsv(), svm_node_invert(), svm_node_normal(), svm_node_normal_map(), svm_node_separate_color(), svm_node_tangent(), svm_node_tex_image_box(), svm_node_tex_sky(), svm_node_vector_displacement(), svm_node_vector_map_range(), svm_wave(), TEST(), TEST(), TEST_F(), to_global(), transform_decompose(), transform_euler(), transform_perspective(), transform_perspective_deriv(), transform_perspective_direction(), transform_rotate(), transform_scale(), transform_set_column(), transform_translate(), BoundBox::transformed(), TYPED_TEST(), OctreeNode::visualize(), volume_fournier_forand_setup(), and Camera::world_to_raster_size().


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