Blender V4.3
float3 Struct Reference

#include <sky_float3.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, 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 26 of file sky_float3.h.

Constructor & Destructor Documentation

◆ float3() [1/6]

float3::float3 ( )
default

Referenced by ccl_try_align().

◆ float3() [2/6]

float3::float3 ( const float * ptr)
inline

Definition at line 31 of file sky_float3.h.

◆ float3() [3/6]

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

Definition at line 33 of file sky_float3.h.

◆ float3() [4/6]

float3::float3 ( float value)
inlineexplicit

Definition at line 35 of file sky_float3.h.

◆ float3() [5/6]

float3::float3 ( int value)
inlineexplicit

Definition at line 37 of file sky_float3.h.

◆ float3() [6/6]

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

Definition at line 39 of file sky_float3.h.

Member Function Documentation

◆ distance()

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

Definition at line 81 of file sky_float3.h.

References b.

Referenced by distance().

◆ length()

float float3::length ( ) const
inline

Definition at line 76 of file sky_float3.h.

References length_squared(), and sqrt().

Referenced by len().

◆ length_squared()

float float3::length_squared ( ) const
inline

Definition at line 71 of file sky_float3.h.

References z.

Referenced by len_squared(), and length().

◆ operator const float *()

float3::operator const float * ( ) const
inline

Definition at line 41 of file sky_float3.h.

References x.

◆ operator float *()

float3::operator float * ( )
inline

Definition at line 46 of file sky_float3.h.

References x.

◆ operator+=()

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

Definition at line 91 of file sky_float3.h.

References b.

Friends And Related Symbol Documentation

◆ operator* [1/3]

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

Definition at line 98 of file sky_float3.h.

◆ operator* [2/3]

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

Definition at line 51 of file sky_float3.h.

◆ operator* [3/3]

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

Definition at line 56 of file sky_float3.h.

◆ operator+

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

Definition at line 86 of file sky_float3.h.

◆ operator- [1/2]

float3 operator- ( const float3 & a)
friend

Definition at line 66 of file sky_float3.h.

◆ operator- [2/2]

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

Definition at line 61 of file sky_float3.h.

Member Data Documentation

◆ x

float float3::x

Definition at line 27 of file sky_float3.h.

Referenced by SVMCompiler::add_node(), atmosphere_intersection(), attr_create_motion_from_velocity(), attr_create_pointiness(), Hair::Curve::bounds_grow(), Hair::Curve::bounds_grow(), Hair::Curve::bounds_grow(), Hair::Curve::bounds_grow(), bsdf_ashikhmin_shirley_sample(), 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_panorama_direction(), camera_sample_panorama(), camera_sample_perspective(), ccl_try_align(), color_balance_float(), color_float_to_byte(), color_linear_to_srgb_v3(), color_srgb_to_linear_v3(), compute_3d_gabor_noise_cell(), compute_3d_orientation(), BVHUnaligned::compute_node_transform(), TextureMapping::compute_transform(), curvebounds(), LightManager::device_update_background(), differential_dudv(), direction_to_central_cylindrical(), direction_to_equiangular_cubemap_face(), direction_to_equirectangular_range(), direction_to_fisheye(), direction_to_fisheye_equisolid(), direction_to_fisheye_lens_polynomial(), direction_to_mirrorball(), direction_to_spherical(), euler_to_transform(), film_apply_pass_pixel_overlays_rgba(), film_calculate_shadow_catcher_matte_with_shadow(), 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_shadow_catcher(), film_write_adaptive_buffer(), film_write_combined_transparent_pass(), get_float3(), MikkMeshWrapper< is_subd >::GetNormal(), MikkMeshWrapper< is_subd >::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(), blender::io::obj::OBJImportTest::import_and_check(), ShaderManager::init_xyz_transforms(), integrate_camera_sample(), BoundBox::intersects(), iridescence_lookup_sensitivity(), kernel_background_evaluate(), kernel_tex_image_interp_3d(), light_tree_emitter_importance(), make_int4(), make_transform_frame(), map_to_sphere(), map_to_tube(), microfacet_beckmann_sample_vndf(), microfacet_ggx_sample_vndf(), mirrorball_to_direction(), ObtainCacheParticleData(), operator const float *(), operator float *(), VertexAverageComparator::operator()(), BVH2::pack_aligned_node(), phase_fournier_forand(), phase_fournier_forand_newton(), phase_sample_direction(), primitive_motion_vector(), primitive_ptex(), ray_offset(), reduce_add(), rgb_to_hsl(), rgb_to_hsv(), rotate_around_axis(), BoundBox::safe_area(), safe_divide_even_color(), safe_divide_shadow_catcher(), sample_wh(), set_attribute_float3(), SKY_nishita_skymodel_precompute_sun(), SKY_nishita_skymodel_precompute_texture(), sky_spherical_coordinates(), snoise_3d(), spec_to_xyz(), stack_store_float3(), sun_radiation(), svm_brick(), svm_checker(), svm_gradient(), svm_magic(), 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_normal(), 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(), ColorSpaceManager::to_scene_linear(), tonemap_simple(), transform_decompose(), transform_euler(), transform_translate(), BoundBox::transformed(), BoundBox::valid(), volume_fournier_forand_setup(), and Camera::world_to_raster_size().

◆ y

float float3::y

Definition at line 27 of file sky_float3.h.

Referenced by SVMCompiler::add_node(), atmosphere_intersection(), attr_create_motion_from_velocity(), attr_create_pointiness(), Hair::Curve::bounds_grow(), Hair::Curve::bounds_grow(), Hair::Curve::bounds_grow(), Hair::Curve::bounds_grow(), bsdf_ashikhmin_shirley_sample(), bsdf_hair_chiang_eval(), bsdf_hair_chiang_sample(), bsdf_hair_huang_albedo(), 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_panorama_direction(), camera_sample_perspective(), ccl_try_align(), color_balance_float(), color_float_to_byte(), color_linear_to_srgb_v3(), color_srgb_to_linear_v3(), compute_3d_gabor_noise_cell(), compute_3d_orientation(), BVHUnaligned::compute_node_transform(), TextureMapping::compute_transform(), LightManager::device_update_background(), differential_dudv(), direction_to_central_cylindrical(), direction_to_equiangular_cubemap_face(), direction_to_equirectangular_range(), direction_to_fisheye(), direction_to_fisheye_equisolid(), direction_to_fisheye_lens_polynomial(), direction_to_mirrorball(), direction_to_spherical(), euler_to_transform(), film_apply_pass_pixel_overlays_rgba(), film_calculate_shadow_catcher_matte_with_shadow(), film_get_pass_pixel_float3(), film_get_pass_pixel_light_path(), film_get_pass_pixel_shadow_catcher(), film_write_adaptive_buffer(), film_write_combined_transparent_pass(), MikkMeshWrapper< is_subd >::GetNormal(), MikkMeshWrapper< is_subd >::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(), ShaderManager::init_xyz_transforms(), integrate_camera_sample(), BoundBox::intersects(), kernel_background_evaluate(), kernel_tex_image_interp_3d(), make_int4(), make_transform_frame(), map_to_sphere(), map_to_tube(), microfacet_beckmann_sample_vndf(), microfacet_ggx_sample_vndf(), mirrorball_to_direction(), VertexAverageComparator::operator()(), BVH2::pack_aligned_node(), phase_fournier_forand(), phase_fournier_forand_newton(), phase_sample_direction(), primitive_motion_vector(), primitive_ptex(), ray_offset(), reduce_add(), rgb_to_hsl(), rgb_to_hsv(), rotate_around_axis(), BoundBox::safe_area(), sample_wh(), set_attribute_float3(), SKY_nishita_skymodel_precompute_sun(), SKY_nishita_skymodel_precompute_texture(), sky_spherical_coordinates(), snoise_3d(), spec_to_xyz(), stack_store_float3(), sun_radiation(), svm_brick(), svm_checker(), svm_gradient(), svm_magic(), 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_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(), tonemap_simple(), transform_decompose(), transform_euler(), transform_translate(), BoundBox::transformed(), BoundBox::valid(), volume_fournier_forand_setup(), and Camera::world_to_raster_size().

◆ z

float float3::z

Definition at line 27 of file sky_float3.h.

Referenced by SVMCompiler::add_node(), atmosphere_intersection(), attr_create_motion_from_velocity(), attr_create_pointiness(), Hair::Curve::bounds_grow(), Hair::Curve::bounds_grow(), Hair::Curve::bounds_grow(), Hair::Curve::bounds_grow(), bsdf_ashikhmin_shirley_sample(), 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(), ccl_try_align(), color_balance_float(), color_float_to_byte(), color_linear_to_srgb_v3(), color_srgb_to_linear_v3(), compute_3d_gabor_noise_cell(), compute_3d_orientation(), BVHUnaligned::compute_node_transform(), TextureMapping::compute_transform(), LightManager::device_update_background(), differential_dudv(), direction_to_central_cylindrical(), direction_to_equiangular_cubemap_face(), direction_to_equirectangular_range(), direction_to_fisheye(), direction_to_fisheye_equisolid(), direction_to_fisheye_lens_polynomial(), direction_to_mirrorball(), direction_to_spherical(), euler_to_transform(), film_apply_pass_pixel_overlays_rgba(), film_calculate_shadow_catcher_matte_with_shadow(), film_get_pass_pixel_float3(), film_get_pass_pixel_light_path(), film_get_pass_pixel_shadow_catcher(), film_write_adaptive_buffer(), film_write_combined_transparent_pass(), MikkMeshWrapper< is_subd >::GetNormal(), MikkMeshWrapper< is_subd >::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(), ShaderManager::init_xyz_transforms(), integrate_camera_sample(), BoundBox::intersects(), kernel_background_evaluate(), kernel_tex_image_interp_3d(), length_squared(), light_sample_from_position(), light_sample_from_volume_segment(), make_int4(), make_transform_frame(), map_to_sphere(), map_to_tube(), microfacet_beckmann_sample_vndf(), microfacet_ggx_sample_vndf(), mirrorball_to_direction(), VertexAverageComparator::operator()(), BVH2::pack_aligned_node(), phase_fournier_forand(), phase_fournier_forand_newton(), phase_sample_direction(), ray_offset(), reduce_add(), rgb_to_hsl(), rgb_to_hsv(), rotate_around_axis(), BoundBox::safe_area(), sample_wh(), set_attribute_float3(), SKY_nishita_skymodel_precompute_sun(), SKY_nishita_skymodel_precompute_texture(), sky_radiance_nishita(), sky_spherical_coordinates(), snoise_3d(), spec_to_xyz(), spot_light_to_local(), stack_store_float3(), surface_intersection(), svm_checker(), svm_gradient(), svm_magic(), svm_mix_burn(), svm_mix_div(), svm_mix_dodge(), svm_mix_overlay(), svm_mix_val(), svm_node_curves(), svm_node_hsv(), 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(), tonemap_simple(), transform_decompose(), transform_euler(), transform_translate(), BoundBox::transformed(), BoundBox::valid(), volume_fournier_forand_setup(), and Camera::world_to_raster_size().


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