Blender V5.0
float2 Struct Reference

#include <types_float2.h>

Public Member Functions

__forceinline float operator[] (int i) const
__forceinline floatoperator[] (int i)
 float2 ()=default
 float2 (const float *ptr)
 float2 (const float(*ptr)[2])
 float2 (float value)
 float2 (int value)
 float2 (float x, float y)
 operator const float * () const
 operator float * ()
float length_squared () const
float length () const
void operator+= (const float2 &b)

Static Public Member Functions

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

Public Attributes

float x
float y

Friends

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

Detailed Description

Definition at line 13 of file types_float2.h.

Constructor & Destructor Documentation

◆ float2() [1/6]

◆ float2() [2/6]

float2::float2 ( const float * ptr)
inline

Definition at line 47 of file sky_math.h.

References ptr, x, and y.

◆ float2() [3/6]

float2::float2 ( const float(*) ptr[2])
inline

Definition at line 49 of file sky_math.h.

References float, float2(), and ptr.

◆ float2() [4/6]

float2::float2 ( float value)
inlineexplicit

Definition at line 51 of file sky_math.h.

References x, and y.

◆ float2() [5/6]

float2::float2 ( int value)
inlineexplicit

Definition at line 53 of file sky_math.h.

References x, and y.

◆ float2() [6/6]

float2::float2 ( float x,
float y )
inline

Definition at line 55 of file sky_math.h.

References x, and y.

Member Function Documentation

◆ distance()

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

Definition at line 112 of file sky_math.h.

References b, and float2().

◆ length()

float float2::length ( ) const
inline

Definition at line 107 of file sky_math.h.

References length_squared(), and sqrt.

Referenced by len().

◆ length_squared()

float float2::length_squared ( ) const
inline

Definition at line 102 of file sky_math.h.

References x, and y.

Referenced by len_squared(), and length().

◆ operator const float *()

float2::operator const float * ( ) const
inline

Definition at line 57 of file sky_math.h.

References x.

◆ operator float *()

float2::operator float * ( )
inline

Definition at line 62 of file sky_math.h.

References x.

◆ operator+=()

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

Definition at line 122 of file sky_math.h.

References b, and float2().

◆ operator[]() [1/2]

__forceinline float & float2::operator[] ( int i)

Definition at line 30 of file types_float2.h.

References __forceinline, i, operator[](), util_assert, and x.

◆ operator[]() [2/2]

__forceinline float float2::operator[] ( int i) const

Definition at line 23 of file types_float2.h.

References __forceinline, i, operator[](), util_assert, and x.

Referenced by operator[](), and operator[]().

◆ operator* [1/3]

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

Definition at line 128 of file sky_math.h.

References b, float2(), x, and y.

◆ operator* [2/3]

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

Definition at line 67 of file sky_math.h.

References b, float2(), x, and y.

◆ operator* [3/3]

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

Definition at line 72 of file sky_math.h.

References b, float2(), x, and y.

◆ operator+

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

Definition at line 117 of file sky_math.h.

References b, float2(), x, and y.

◆ operator- [1/2]

float2 operator- ( const float2 & a)
friend

Definition at line 97 of file sky_math.h.

References float2(), x, and y.

◆ operator- [2/2]

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

Definition at line 92 of file sky_math.h.

References b, float2(), x, and y.

◆ operator/ [1/3]

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

Definition at line 87 of file sky_math.h.

References b, float2(), x, and y.

◆ operator/ [2/3]

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

Definition at line 77 of file sky_math.h.

References b, float2(), x, and y.

◆ operator/ [3/3]

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

Definition at line 82 of file sky_math.h.

References b, float2(), x, and y.

Member Data Documentation

◆ x

float float2::x

Definition at line 14 of file types_float2.h.

Referenced by __anyhit__kernel_optix_local_hit(), __anyhit__kernel_optix_shadow_all_hit(), __closesthit__kernel_optix_hit(), area_light_rect_sample(), average(), background_cdf(), background_light_sample(), background_map_pdf(), background_map_sample(), bake_jitter_barycentric(), blender_camera_from_object(), blender_camera_sync(), blender_camera_view_subset(), blender_camera_viewplane(), bsdf_ashikhmin_shirley_sample(), bsdf_ashikhmin_shirley_sample_first_quadrant(), bsdf_hair_reflection_sample(), bsdf_hair_transmission_sample(), bsdf_sheen_sample(), BVH(), BVH(), calculate_out_segment_id(), calculate_out_variables(), calculate_out_variables_irregular_circular(), calculate_out_variables_irregular_circular(), camera_sample(), camera_sample_aperture(), camera_sample_custom(), camera_sample_panorama(), compute_2d_gabor_noise_cell(), compute_3d_orientation(), HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCycles< float2 >(), cross(), curvemap_zoom(), d_gamma_d_h(), LightManager::device_update_background(), direction_to_fisheye_equidistant(), direction_to_fisheye_equisolid(), direction_to_fisheye_lens_polynomial(), disk_to_hemisphere(), dot(), dot(), draw_tile(), ED_region_cache_draw_curfra_label(), ellipse_sample(), EdgeDice::eval_projected(), fabs(), float2(), float2(), float2(), float2(), floor(), fmod(), fresnel_iridescence(), Attribute::get_uv_tiles(), MikkMeshWrapper::GetTexCoord(), guiding_bsdf_sample(), guiding_phase_sample(), guiding_record_surface_bounce(), hash_float2_to_float(), hash_float2_to_float2(), hash_float2_to_float3(), integrator_init_from_bake(), is_zero(), kernel_path_mnee_sample(), length_squared(), light_sample(), make_float3(), make_float3(), make_int2(), SubPatch::map_uv(), max(), microfacet_beckmann_sample_vndf(), microfacet_ggx_sample_vndf(), min(), mnee_newton_solver(), ObtainCacheParticleUV(), operator const float *(), operator float *(), operator*, operator*, operator*, operator*(), operator*(), operator*(), operator+, operator+(), operator-, operator-, operator-(), operator-(), operator/, operator/, operator/, operator/(), operator/(), operator/(), operator==(), operator>=(), operator[](), operator[](), phase_draine_sample(), phase_fournier_forand_sample(), phase_henyey_greenstein_sample(), phase_rayleigh_sample(), phi_to_h(), point_light_mnee_sample_update(), point_light_sample(), point_light_sample_from_intersection(), SkyMultipleScattering::precompute_lut(), primitive_uv(), print_dual2(), print_float2(), rectangle_sample(), reduce_add(), reduce_add(), reduce_max(), reduce_min(), regular_polygon_sample(), sample_cos_hemisphere(), sample_uniform_disk(), sample_uniform_sphere(), select(), EquiangularCubemapFace::sensor_to_direction(), Equirectangular::sensor_to_direction(), FisheyeEquidistant::sensor_to_direction(), FisheyeEquisolid::sensor_to_direction(), MirrorBall::sensor_to_direction(), Spherical::sensor_to_direction(), EdgeDice::set_vertex(), SubdAttributeInterpolation::setup_attribute_corner_linear(), SubdAttributeInterpolation::setup_attribute_vertex_linear(), SKY_multiple_scattering_precompute_texture(), sky_radiance_hosek(), sky_radiance_nishita(), sky_radiance_preetham(), sky_texture_precompute_hosek(), sky_texture_precompute_preetham(), snoise_2d(), svm_node_tangent(), svm_node_tex_brick(), svm_node_tex_environment(), svm_node_tex_gabor(), svm_node_tex_image(), svm_node_tex_image_box(), BlenderSync::sync_camera(), TEST(), TEST(), TEST(), to_global(), triangle_light_sample(), TYPED_TEST(), voronoi_position(), WM_gesture_lasso_modal(), workbench_render_framebuffers_init(), and Camera::world_to_raster_size().

◆ y

float float2::y

Definition at line 14 of file types_float2.h.

Referenced by __anyhit__kernel_optix_local_hit(), __anyhit__kernel_optix_shadow_all_hit(), __closesthit__kernel_optix_hit(), area_light_rect_sample(), average(), background_cdf(), background_map_pdf(), background_map_sample(), background_portal_sample(), bake_jitter_barycentric(), blender_camera_from_object(), blender_camera_sync(), blender_camera_view_subset(), blender_camera_viewplane(), bsdf_ashikhmin_shirley_sample(), bsdf_ashikhmin_shirley_sample_first_quadrant(), bsdf_hair_reflection_sample(), bsdf_hair_transmission_sample(), bsdf_sheen_sample(), BVH(), BVH(), calculate_out_segment_id(), calculate_out_variables(), calculate_out_variables_irregular_circular(), calculate_out_variables_irregular_circular(), camera_sample(), camera_sample_custom(), camera_sample_panorama(), compute_2d_gabor_noise_cell(), compute_3d_orientation(), HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCycles< float2 >(), cross(), curvemap_zoom(), d_gamma_d_h(), LightManager::device_update_background(), direction_to_fisheye_equidistant(), direction_to_fisheye_equisolid(), direction_to_fisheye_lens_polynomial(), disk_to_hemisphere(), dot(), dot(), draw_tile(), ED_region_cache_draw_curfra_label(), ellipse_sample(), EdgeDice::eval_projected(), fabs(), float2(), float2(), float2(), float2(), floor(), fmod(), fresnel_iridescence(), Attribute::get_uv_tiles(), MikkMeshWrapper::GetTexCoord(), guiding_bsdf_sample(), guiding_phase_sample(), guiding_record_surface_bounce(), hash_float2_to_float(), hash_float2_to_float2(), hash_float2_to_float3(), integrator_init_from_bake(), is_zero(), kernel_path_mnee_sample(), length_squared(), light_sample(), make_float3(), make_float3(), make_int2(), SubPatch::map_uv(), max(), microfacet_beckmann_sample_vndf(), microfacet_ggx_sample_vndf(), min(), mnee_newton_solver(), operator*, operator*, operator*, operator*(), operator*(), operator*(), operator+, operator+(), operator-, operator-, operator-(), operator-(), operator/, operator/, operator/, operator/(), operator/(), operator/(), operator==(), operator>=(), phase_draine_sample(), phase_fournier_forand_sample(), phase_henyey_greenstein_sample(), phase_rayleigh_sample(), phi_to_h(), point_light_mnee_sample_update(), point_light_sample(), point_light_sample_from_intersection(), SkyMultipleScattering::precompute_lut(), primitive_uv(), print_dual2(), print_float2(), rectangle_sample(), reduce_add(), reduce_add(), reduce_max(), reduce_min(), regular_polygon_sample(), sample_cos_hemisphere(), sample_uniform_disk(), sample_uniform_sphere(), select(), EquiangularCubemapFace::sensor_to_direction(), Equirectangular::sensor_to_direction(), FisheyeEquidistant::sensor_to_direction(), FisheyeEquisolid::sensor_to_direction(), MirrorBall::sensor_to_direction(), Spherical::sensor_to_direction(), EdgeDice::set_vertex(), SubdAttributeInterpolation::setup_attribute_corner_linear(), SubdAttributeInterpolation::setup_attribute_vertex_linear(), SKY_multiple_scattering_precompute_texture(), sky_radiance_hosek(), sky_radiance_nishita(), sky_radiance_preetham(), sky_texture_precompute_hosek(), sky_texture_precompute_preetham(), snoise_2d(), svm_node_tangent(), svm_node_tex_brick(), svm_node_tex_environment(), svm_node_tex_gabor(), svm_node_tex_image(), svm_node_tex_image_box(), BlenderSync::sync_camera(), TEST(), TEST(), TEST(), to_global(), triangle_light_sample(), TYPED_TEST(), voronoi_position(), WM_gesture_lasso_modal(), workbench_render_framebuffers_init(), and Camera::world_to_raster_size().


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