|
Blender
V2.93
|
#include <BLI_float3.hh>
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 * () | |
| float3 & | operator+= (const float3 &b) |
| float3 & | operator-= (const float3 &b) |
| float3 & | operator*= (float scalar) |
| float3 & | operator*= (const float3 &other) |
| float | normalize_and_get_length () |
| void | normalize () |
| float3 | normalized () const |
| float | length () const |
| float | length_squared () const |
| bool | is_zero () const |
| void | reflect (const float3 &normal) |
| float3 | reflected (const float3 &normal) const |
| void | invert () |
| uint64_t | hash () const |
Static Public Member Functions | |
| static float3 | refract (const float3 &incident, const float3 &normal, const float eta) |
| static float3 | faceforward (const float3 &vector, const float3 &incident, const float3 &reference) |
| static float3 | safe_divide (const float3 &a, const float3 &b) |
| static float | dot (const float3 &a, const float3 &b) |
| static float3 | cross_high_precision (const float3 &a, const float3 &b) |
| static float3 | project (const float3 &a, const float3 &b) |
| static float | distance (const float3 &a, const float3 &b) |
| static float | distance_squared (const float3 &a, const float3 &b) |
| static float3 | interpolate (const float3 &a, const float3 &b, float t) |
| static float3 | abs (const float3 &a) |
Public Attributes | |
| float | x |
| float | y |
| float | z |
Friends | |
| float3 | operator+ (const float3 &a, const float3 &b) |
| 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, float b) |
| float3 | operator* (float a, const float3 &b) |
| float3 | operator/ (const float3 &a, float b) |
| std::ostream & | operator<< (std::ostream &stream, const float3 &v) |
| bool | operator== (const float3 &a, const float3 &b) |
| bool | operator!= (const float3 &a, const float3 &b) |
Definition at line 25 of file BLI_float3.hh.
|
inline |
Definition at line 30 of file BLI_float3.hh.
|
inline |
Definition at line 34 of file BLI_float3.hh.
|
inlineexplicit |
Definition at line 38 of file BLI_float3.hh.
|
inlineexplicit |
Definition at line 42 of file BLI_float3.hh.
Definition at line 46 of file BLI_float3.hh.
Definition at line 271 of file BLI_float3.hh.
References Freestyle::a, fabsf, and float3().
Referenced by blender::nodes::try_dispatch_float_math_fl3_to_fl3().
|
inlinestatic |
Definition at line 241 of file BLI_float3.hh.
References Freestyle::a, cross_v3_v3v3_hi_prec(), and result.
Referenced by blender::nodes::align_rotations_auto_pivot(), and blender::nodes::try_dispatch_float_math_fl3_fl3_to_fl3().
Definition at line 255 of file BLI_float3.hh.
References Freestyle::a.
Referenced by blender::nodes::try_dispatch_float_math_fl3_fl3_to_fl().
Definition at line 260 of file BLI_float3.hh.
References Freestyle::a, KDL::diff(), and dot().
Definition at line 236 of file BLI_float3.hh.
References Freestyle::a, x, y, and z.
Referenced by distance_squared(), faceforward(), refract(), blender::nodes::try_dispatch_float_math_fl3_fl3_to_fl(), and blender::nodes::try_dispatch_float_math_fl3_fl3_to_fl3().
|
inlinestatic |
Definition at line 207 of file BLI_float3.hh.
References dot().
Referenced by blender::nodes::try_dispatch_float_math_fl3_fl3_fl3_to_fl3().
|
inline |
Definition at line 228 of file BLI_float3.hh.
Referenced by blender::nodes::compute_special_attributes(), and blender::nodes::update_elimination_mask_based_on_density_factors().
|
inlinestatic |
Definition at line 266 of file BLI_float3.hh.
References Freestyle::a, and t.
|
inline |
Definition at line 221 of file BLI_float3.hh.
|
inline |
Definition at line 177 of file BLI_float3.hh.
Referenced by blender::nodes::transform_mesh().
|
inline |
Definition at line 167 of file BLI_float3.hh.
References len_v3().
Referenced by blender::nodes::try_dispatch_float_math_fl3_to_fl().
|
inline |
Definition at line 172 of file BLI_float3.hh.
References len_squared_v3().
Referenced by blender::nodes::use_translate().
|
inline |
Normalizes the vector in place.
Definition at line 152 of file BLI_float3.hh.
References normalize_v3().
Referenced by get_dupliface_transform_from_coords(), blender::nodes::try_dispatch_float_math_fl3_fl3_to_fl3(), and blender::nodes::try_dispatch_float_math_fl3_to_fl3().
|
inline |
Definition at line 144 of file BLI_float3.hh.
References normalize_v3().
|
inline |
Returns a normalized vector. The original vector is not changed.
Definition at line 160 of file BLI_float3.hh.
References normalize_v3_v3(), and result.
Referenced by blender::nodes::create_line_mesh(), blender::nodes::geo_node_mesh_primitive_line_exec(), and blender::nodes::try_dispatch_float_math_fl3_fl3_fl_to_fl3().
|
inline |
Definition at line 50 of file BLI_float3.hh.
References x.
|
inline |
Definition at line 55 of file BLI_float3.hh.
References x.
Definition at line 99 of file BLI_float3.hh.
Definition at line 91 of file BLI_float3.hh.
Definition at line 65 of file BLI_float3.hh.
Definition at line 83 of file BLI_float3.hh.
Definition at line 248 of file BLI_float3.hh.
References Freestyle::a, project_v3_v3v3(), and result.
|
inline |
Definition at line 182 of file BLI_float3.hh.
References reflected().
Definition at line 187 of file BLI_float3.hh.
References normal, reflect_v3_v3v3(), and result.
Referenced by reflect().
|
inlinestatic |
Definition at line 194 of file BLI_float3.hh.
References dot(), float3(), normal, result, and sqrt().
Referenced by blender::nodes::try_dispatch_float_math_fl3_fl3_fl_to_fl3().
Definition at line 212 of file BLI_float3.hh.
References Freestyle::a, result, x, y, and z.
Definition at line 139 of file BLI_float3.hh.
Definition at line 107 of file BLI_float3.hh.
Definition at line 112 of file BLI_float3.hh.
Definition at line 117 of file BLI_float3.hh.
Definition at line 60 of file BLI_float3.hh.
Definition at line 78 of file BLI_float3.hh.
Definition at line 73 of file BLI_float3.hh.
Definition at line 122 of file BLI_float3.hh.
|
friend |
Definition at line 128 of file BLI_float3.hh.
Definition at line 134 of file BLI_float3.hh.
| float blender::float3::x |
Definition at line 26 of file BLI_float3.hh.
Referenced by blender::nodes::calculate_uvs(), MF_SeparateXYZ::call(), blender::nodes::clamp_value(), dot(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_content_cell(), blender::io::gpencil::GpencilIO::gpencil_3D_point_to_render_space(), hash(), invert(), blender::nodes::map_range_float3(), blender::attribute_math::mix3(), operator const float *(), operator float *(), operator*=(), operator+=(), operator-=(), safe_divide(), blender::nodes::transform_volume(), blender::nodes::try_dispatch_float_math_fl3_fl3_fl3_to_fl3(), blender::nodes::try_dispatch_float_math_fl3_fl3_to_fl3(), blender::nodes::try_dispatch_float_math_fl3_to_fl3(), blender::nodes::update_elimination_mask_based_on_density_factors(), and blender::nodes::use_translate().
| float blender::float3::y |
Definition at line 26 of file BLI_float3.hh.
Referenced by blender::nodes::calculate_uvs(), MF_SeparateXYZ::call(), blender::nodes::clamp_value(), dot(), blender::io::gpencil::GpencilIO::gpencil_3D_point_to_render_space(), hash(), invert(), blender::nodes::map_range_float3(), blender::attribute_math::mix3(), operator*=(), operator+=(), operator-=(), safe_divide(), blender::nodes::transform_volume(), blender::nodes::try_dispatch_float_math_fl3_fl3_fl3_to_fl3(), blender::nodes::try_dispatch_float_math_fl3_fl3_to_fl3(), blender::nodes::try_dispatch_float_math_fl3_to_fl3(), blender::nodes::update_elimination_mask_based_on_density_factors(), and blender::nodes::use_translate().
| float blender::float3::z |
Definition at line 26 of file BLI_float3.hh.
Referenced by MF_SeparateXYZ::call(), blender::nodes::clamp_value(), dot(), blender::io::gpencil::GpencilIO::gpencil_3D_point_to_render_space(), hash(), invert(), blender::nodes::map_range_float3(), blender::attribute_math::mix3(), operator*=(), operator+=(), operator-=(), safe_divide(), blender::nodes::transform_volume(), blender::nodes::try_dispatch_float_math_fl3_fl3_fl3_to_fl3(), blender::nodes::try_dispatch_float_math_fl3_fl3_to_fl3(), blender::nodes::try_dispatch_float_math_fl3_to_fl3(), blender::nodes::update_elimination_mask_based_on_density_factors(), and blender::nodes::use_translate().