Blender  V3.3
Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
float3 Struct Reference

#include <compat.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 158 of file oneapi/compat.h.

Constructor & Destructor Documentation

◆ float3() [1/6]

float3::float3 ( )
default

◆ float3() [2/6]

float3::float3 ( const float ptr)
inline

Definition at line 29 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 37 of file sky_float3.h.

◆ float3() [5/6]

float3::float3 ( int  value)
inlineexplicit

Definition at line 41 of file sky_float3.h.

◆ float3() [6/6]

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

Definition at line 45 of file sky_float3.h.

Member Function Documentation

◆ distance()

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

Definition at line 89 of file sky_float3.h.

References Freestyle::a, and usdtokens::b().

Referenced by distance().

◆ length()

float float3::length ( ) const
inline

Definition at line 84 of file sky_float3.h.

References length_squared(), and sqrt().

Referenced by len().

◆ length_squared()

float float3::length_squared ( ) const
inline

Definition at line 79 of file sky_float3.h.

References x, y, and z.

Referenced by len_squared(), and length().

◆ operator const float *()

float3::operator const float * ( ) const
inline

Definition at line 49 of file sky_float3.h.

References x.

◆ operator float *()

float3::operator float * ( )
inline

Definition at line 54 of file sky_float3.h.

References x.

◆ operator+=()

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

Definition at line 99 of file sky_float3.h.

References usdtokens::b().

Friends And Related Function Documentation

◆ operator* [1/3]

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

Definition at line 106 of file sky_float3.h.

◆ operator* [2/3]

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

Definition at line 59 of file sky_float3.h.

◆ operator* [3/3]

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

Definition at line 64 of file sky_float3.h.

◆ operator+

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

Definition at line 94 of file sky_float3.h.

◆ operator- [1/2]

float3 operator- ( const float3 a)
friend

Definition at line 74 of file sky_float3.h.

◆ operator- [2/2]

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

Definition at line 69 of file sky_float3.h.

Member Data Documentation

◆ x

float float3::x

Definition at line 159 of file oneapi/compat.h.

Referenced by SVMCompiler::add_node(), atmosphere_intersection(), attr_create_pointiness(), Hair::Curve::bounds_grow(), bsdf_ashikhmin_shirley_sample(), bsdf_diffuse_toon_eval_reflect(), bsdf_eval(), bsdf_microfacet_beckmann_eval_reflect(), bsdf_microfacet_beckmann_sample(), bsdf_microfacet_ggx_eval_reflect(), bsdf_microfacet_ggx_sample(), bsdf_microfacet_multi_ggx_glass_sample(), bsdf_microfacet_multi_ggx_sample(), bsdf_principled_hair_eval(), bsdf_principled_hair_sample(), bssrdf_eval(), bssrdf_num_channels(), bssrdf_pdf(), bssrdf_sample(), bssrdf_setup(), bvh_aligned_node_intersect(), bvh_clamp_direction(), bvh_unaligned_node_intersect_child(), BVHSpatialSplit::BVHSpatialSplit(), calculate_normals_minimum(), calculate_normals_z_up(), camera_sample_panorama(), PrincipledBsdfNode::compile(), BVHUnaligned::compute_node_transform(), TextureMapping::compute_transform(), HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCycles< float3 >(), curvebounds(), D_ggx_aniso(), LightManager::device_update_background(), ShaderManager::device_update_common(), LightManager::device_update_points(), differential_dudv(), direction_from_cosine(), direction_to_equirectangular_range(), direction_to_fisheye(), direction_to_fisheye_equisolid(), direction_to_fisheye_lens_polynomial(), direction_to_mirrorball(), direction_to_spherical(), equirectangular_range_to_direction(), 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(), get_float3(), BoundBox::grow_safe(), hash_float3_to_float(), hash_float3_to_float3(), henyey_greenstrein_sample(), hsl_to_rgb(), hsv_to_rgb(), blender::io::obj::obj_importer_test::import_and_check(), ShaderManager::init_xyz_transforms(), BoundBox::intersects(), kernel_accum_adaptive_buffer(), kernel_accum_combined_transparent_pass(), kernel_embree_setup_ray(), kernel_write_pass_float3(), length_squared(), ConstantFolder::make_constant_clamp(), make_int4(), make_transform_frame(), map_to_sphere(), map_to_tube(), mf_sample_vndf(), microfacet_sample_stretched(), mikk_get_position(), mirrorball_to_direction(), ObtainCacheParticleData(), operator const float *(), operator float *(), VertexAverageComparator::operator()(), operator<<(), BVH2::pack_aligned_node(), Mesh::pack_normals(), primitive_motion_vector(), primitive_ptex(), ray_offset(), reduce_add(), rotate_around_axis(), BoundBox::safe_area(), set_attribute_float3(), set_float3(), SKY_nishita_skymodel_precompute_sun(), SKY_nishita_skymodel_precompute_texture(), sky_spherical_coordinates(), snoise_3d(), spec_to_xyz(), stack_store_float3(), subsurface_random_walk(), subsurface_random_walk_coefficients(), 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_aov_color(), svm_node_closure_bsdf(), svm_node_curves(), svm_node_hsv(), svm_node_normal(), svm_node_tangent(), svm_node_tex_image(), svm_node_tex_image_box(), svm_node_tex_musgrave(), svm_node_tex_sky(), svm_node_tex_voronoi(), svm_node_vector_displacement(), svm_node_vector_map_range(), svm_wave(), transform_decompose(), transform_euler(), transform_rotate(), transform_scale(), transform_set_column(), BoundBox::transformed(), BoundBox::valid(), volume_channel_get(), volume_sample_channel(), Camera::world_to_raster_size(), and xml_write_node().

◆ y

float float3::y

Definition at line 159 of file oneapi/compat.h.

Referenced by SVMCompiler::add_node(), atmosphere_intersection(), attr_create_pointiness(), Hair::Curve::bounds_grow(), bsdf_ashikhmin_shirley_sample(), bsdf_eval(), bsdf_microfacet_beckmann_eval_reflect(), bsdf_microfacet_beckmann_sample(), bsdf_microfacet_ggx_eval_reflect(), bsdf_microfacet_ggx_sample(), bsdf_microfacet_multi_ggx_glass_sample(), bsdf_microfacet_multi_ggx_sample(), bsdf_principled_hair_eval(), bsdf_principled_hair_sample(), bssrdf_eval(), bssrdf_num_channels(), bssrdf_pdf(), bssrdf_sample(), bssrdf_setup(), bvh_aligned_node_intersect(), bvh_clamp_direction(), bvh_unaligned_node_intersect_child(), BVHSpatialSplit::BVHSpatialSplit(), calculate_normals_minimum(), calculate_normals_z_up(), camera_sample_panorama(), PrincipledBsdfNode::compile(), BVHUnaligned::compute_node_transform(), TextureMapping::compute_transform(), HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCycles< float3 >(), D_ggx_aniso(), LightManager::device_update_background(), ShaderManager::device_update_common(), LightManager::device_update_points(), differential_dudv(), direction_from_cosine(), 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(), BoundBox::grow_safe(), hash_float3_to_float(), hash_float3_to_float3(), henyey_greenstrein_sample(), hsl_to_rgb(), hsv_to_rgb(), ShaderManager::init_xyz_transforms(), BoundBox::intersects(), kernel_accum_adaptive_buffer(), kernel_accum_combined_transparent_pass(), kernel_embree_setup_ray(), kernel_write_pass_float3(), length_squared(), ConstantFolder::make_constant_clamp(), make_int4(), make_transform_frame(), map_to_sphere(), map_to_tube(), mf_sample_vndf(), microfacet_sample_stretched(), mikk_get_position(), mirrorball_to_direction(), VertexAverageComparator::operator()(), operator<<(), BVH2::pack_aligned_node(), Mesh::pack_normals(), primitive_motion_vector(), primitive_ptex(), ray_offset(), reduce_add(), rotate_around_axis(), BoundBox::safe_area(), set_attribute_float3(), SKY_nishita_skymodel_precompute_sun(), SKY_nishita_skymodel_precompute_texture(), sky_spherical_coordinates(), snoise_3d(), spec_to_xyz(), stack_store_float3(), subsurface_random_walk(), subsurface_random_walk_coefficients(), 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_aov_color(), svm_node_closure_bsdf(), svm_node_curves(), svm_node_hsv(), svm_node_normal(), svm_node_tangent(), svm_node_tex_image(), svm_node_tex_image_box(), svm_node_tex_musgrave(), svm_node_tex_sky(), svm_node_tex_voronoi(), svm_node_vector_displacement(), svm_node_vector_map_range(), svm_wave(), transform_decompose(), transform_euler(), transform_rotate(), transform_scale(), transform_set_column(), BoundBox::transformed(), BoundBox::valid(), volume_channel_get(), volume_sample_channel(), Camera::world_to_raster_size(), and xml_write_node().

◆ z

float float3::z

Definition at line 159 of file oneapi/compat.h.

Referenced by SVMCompiler::add_node(), atmosphere_intersection(), attr_create_pointiness(), Hair::Curve::bounds_grow(), bsdf_ashikhmin_shirley_sample(), bsdf_eval(), bsdf_microfacet_beckmann_eval_reflect(), bsdf_microfacet_beckmann_sample(), bsdf_microfacet_ggx_eval_reflect(), bsdf_microfacet_ggx_sample(), bsdf_microfacet_multi_ggx_glass_sample(), bsdf_microfacet_multi_ggx_sample(), bsdf_principled_hair_eval(), bsdf_principled_hair_sample(), bssrdf_eval(), bssrdf_num_channels(), bssrdf_pdf(), bssrdf_sample(), bssrdf_setup(), bvh_aligned_node_intersect(), bvh_clamp_direction(), bvh_unaligned_node_intersect_child(), BVHSpatialSplit::BVHSpatialSplit(), camera_z_depth(), PrincipledBsdfNode::compile(), BVHUnaligned::compute_node_transform(), TextureMapping::compute_transform(), HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCycles< float3 >(), D_ggx(), D_ggx_aniso(), LightManager::device_update_background(), ShaderManager::device_update_common(), LightManager::device_update_points(), differential_dudv(), direction_from_cosine(), 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(), BoundBox::grow_safe(), hash_float3_to_float(), hash_float3_to_float3(), henyey_greenstrein_sample(), hsl_to_rgb(), hsv_to_rgb(), ShaderManager::init_xyz_transforms(), BoundBox::intersects(), kernel_accum_adaptive_buffer(), kernel_accum_combined_transparent_pass(), kernel_embree_setup_ray(), kernel_write_pass_float3(), length_squared(), ConstantFolder::make_constant_clamp(), make_int4(), make_transform_frame(), map_to_sphere(), map_to_tube(), mf_eval_phase_glass(), mf_eval_phase_glossy(), mf_ggx_aniso_pdf(), mf_ggx_pdf(), mf_glass_pdf(), mf_sample_vndf(), microfacet_sample_stretched(), mikk_get_position(), mirrorball_to_direction(), VertexAverageComparator::operator()(), operator<<(), BVH2::pack_aligned_node(), Mesh::pack_normals(), ray_offset(), reduce_add(), rotate_around_axis(), BoundBox::safe_area(), set_attribute_float3(), SKY_nishita_skymodel_precompute_sun(), SKY_nishita_skymodel_precompute_texture(), sky_radiance_nishita(), sky_spherical_coordinates(), snoise_3d(), spec_to_xyz(), stack_store_float3(), subsurface_random_walk(), subsurface_random_walk_coefficients(), 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_aov_color(), svm_node_closure_bsdf(), svm_node_curves(), svm_node_hsv(), svm_node_normal(), svm_node_tangent(), svm_node_tex_image_box(), svm_node_tex_musgrave(), svm_node_tex_sky(), svm_node_tex_voronoi(), svm_node_vector_displacement(), svm_node_vector_map_range(), svm_wave(), transform_decompose(), transform_euler(), transform_rotate(), transform_scale(), transform_set_column(), BoundBox::transformed(), BoundBox::valid(), volume_channel_get(), volume_sample_channel(), Camera::world_to_raster_size(), and xml_write_node().


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