Blender V5.0
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 ptr, 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, float4(), and ptr.

◆ 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()

float float4::length ( ) const
inline

Definition at line 294 of file sky_math.h.

References length_squared(), and sqrt.

Referenced by len().

◆ 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(), Hair::apply_transform(), PointCloud::apply_transform(), area_light_rect_sample(), attribute_data_fetch_bytecolor(), 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(), color_float4_to_uchar4(), color_linear_to_srgb_v4(), color_srgb_to_linear_v4(), BVHUnaligned::compute_node_transform(), convert_camera_transform(), copy_matrix(), copy_matrix(), copy_v4_v4(), curve_point_as_float4(), CurveSegmentMotionCV(), cycles_precompute(), debug_color_pack(), direction_to_central_cylindrical(), direction_to_equirectangular_range(), dot(), ensure_finite(), equirectangular_range_to_direction(), euler_to_transform(), exp(), export_hair_curves_motion(), export_hair_motion_validate_attribute(), ExportCurveSegmentsMotion(), fabs(), 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_display(), floor(), floorfrac(), fmod(), hash_float4_to_float(), hash_float4_to_float2(), hash_float4_to_float3(), hash_float4_to_float4(), is_zero(), length_squared(), make_int4(), make_projection(), make_transform(), make_vfloat8(), mat22_determinant(), mat22_inverse(), mat22_mult(), mat22_mult(), max(), max(), min(), object_location(), operator*, operator*, operator*, operator*(), operator*(), operator+, operator+(), operator-, operator-, operator-(), operator-(), operator/, operator/, operator/, operator/(), operator<(), operator<<(), operator<=(), operator==(), operator>=(), operator^(), print_float4(), projection_transpose(), reduce_add(), reduce_add(), reduce_max(), reduce_min(), rs_texture(), rs_texture3d(), safe_divide(), saturate(), select(), snoise_4d(), sqrt(), svm_image_texture(), svm_node_radial_tiling(), svm_node_rgb_ramp(), svm_node_tex_environment(), svm_node_tex_image(), svm_node_tex_image_box(), svm_node_vertex_color(), svm_node_vertex_color_bump_dx(), svm_node_vertex_color_bump_dy(), tabulated_sobol_generate_4D(), TEST_F(), transform_decompose(), transform_inverse_impl(), transform_motion_array_interpolate(), transform_motion_decompose(), and transform_to_quat().

◆ x

float float4::x

Definition at line 225 of file sky_math.h.

Referenced by __float4_as_int4(), SVMCompiler::add_node(), area_light_rect_sample(), as_float2(), BVH(), BVH(), BVH(), BVH(), bvh_aligned_node_intersect(), bvh_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(), copy_matrix(), copy_matrix(), copy_v4_v4(), cross(), debug_color_pack(), direction_to_central_cylindrical(), direction_to_equirectangular_range(), direction_to_fisheye_lens_polynomial(), dot(), ensure_finite(), equirectangular_range_to_direction(), euler_to_transform(), exp(), fabs(), 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_display(), floor(), floorfrac(), fmod(), get_best_dimension(), get_float4(), hash_float4_to_float(), hash_float4_to_float2(), hash_float4_to_float3(), hash_float4_to_float4(), is_zero(), length_squared(), lookup_instance_property(), make_float3(), make_int4(), make_projection(), make_transform(), make_vfloat8(), mat22_determinant(), mat22_inverse(), mat22_mult(), mat22_mult(), max(), max(), min(), 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==(), operator>=(), operator^(), print_float4(), projection_transpose(), reduce_add(), reduce_add(), reduce_max(), reduce_min(), rs_texture(), rs_texture3d(), safe_divide(), saturate(), select(), set_float4(), snoise_4d(), sqrt(), store_pixel(), svm_node_curves(), svm_node_radial_tiling(), svm_node_tex_environment(), svm_node_tex_image(), svm_node_tex_image_box(), tabulated_sobol_generate_4D(), TEST_F(), transform_direction(), transform_inverse_impl(), transform_point(), and transform_to_quat().

◆ y

float float4::y

Definition at line 225 of file sky_math.h.

Referenced by __float4_as_int4(), SVMCompiler::add_node(), area_light_rect_sample(), as_float2(), 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(), copy_matrix(), copy_matrix(), copy_v4_v4(), cross(), debug_color_pack(), direction_to_central_cylindrical(), direction_to_equirectangular_range(), dot(), ensure_finite(), equirectangular_range_to_direction(), euler_to_transform(), exp(), fabs(), 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_display(), floor(), floorfrac(), fmod(), get_best_dimension(), hash_float4_to_float(), hash_float4_to_float2(), hash_float4_to_float3(), hash_float4_to_float4(), 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(), operator*, operator*, operator*, operator*(), operator*(), operator+, operator+(), operator-, operator-, operator-(), operator-(), operator/, operator/, operator/, operator/(), operator<(), operator<<(), operator<=(), operator==(), operator>=(), operator^(), print_float4(), projection_transpose(), reduce_add(), reduce_add(), reduce_max(), reduce_min(), rs_texture(), rs_texture3d(), safe_divide(), saturate(), select(), snoise_4d(), sqrt(), svm_node_curves(), svm_node_radial_tiling(), svm_node_tex_environment(), svm_node_tex_image(), svm_node_tex_image_box(), tabulated_sobol_generate_4D(), TEST_F(), transform_direction(), transform_inverse_impl(), transform_motion_array_interpolate(), transform_point(), and transform_to_quat().

◆ z

float float4::z

Definition at line 225 of file sky_math.h.

Referenced by __float4_as_int4(), SVMCompiler::add_node(), area_light_rect_sample(), BVH(), BVH(), BVH(), BVH(), bvh_aligned_node_intersect(), camera_direction_from_point(), camera_distance(), cast(), central_cylindrical_to_direction(), color_float4_to_uchar4(), color_linear_to_srgb_v4(), color_srgb_to_linear_v4(), convert_camera_transform(), copy_matrix(), copy_matrix(), copy_v4_v4(), cross(), debug_color_pack(), direction_to_central_cylindrical(), direction_to_equirectangular_range(), dot(), ensure_finite(), equirectangular_range_to_direction(), euler_to_transform(), exp(), fabs(), 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_display(), floor(), floorfrac(), fmod(), get_best_dimension(), hash_float4_to_float(), hash_float4_to_float2(), hash_float4_to_float3(), hash_float4_to_float4(), 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(), operator*, operator*, operator*, operator*(), operator*(), operator+, operator+(), operator-, operator-, operator-(), operator-(), operator/, operator/, operator/, operator/(), operator<(), operator<<(), operator<=(), operator==(), operator>=(), operator^(), print_float4(), projection_transpose(), reduce_add(), reduce_add(), reduce_max(), reduce_min(), rs_texture(), rs_texture3d(), safe_divide(), saturate(), select(), snoise_4d(), sqrt(), svm_node_curves(), svm_node_radial_tiling(), svm_node_tex_environment(), svm_node_tex_image(), svm_node_tex_image_box(), tabulated_sobol_generate_4D(), TEST_F(), transform_direction(), transform_inverse_impl(), transform_motion_array_interpolate(), transform_point(), and transform_to_quat().


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