|
Blender
V2.93
|
#include <BLI_float2.hh>
Classes | |
| struct | isect_result |
Public Member Functions | |
| float2 ()=default | |
| float2 (const float *ptr) | |
| float2 (float value) | |
| float2 (int value) | |
| float2 (float x, float y) | |
| float2 (const float3 &other) | |
| operator float * () | |
| operator const float * () const | |
| float | length () const |
| float | length_squared () const |
| bool | is_zero () const |
| float2 & | operator+= (const float2 &other) |
| float2 & | operator-= (const float2 &other) |
| float2 & | operator*= (float factor) |
| float2 & | operator/= (float divisor) |
| uint64_t | hash () const |
Static Public Member Functions | |
| static float | dot (const float2 &a, const float2 &b) |
| static float2 | interpolate (const float2 &a, const float2 &b, float t) |
| static float2 | abs (const float2 &a) |
| static float | distance (const float2 &a, const float2 &b) |
| static float | distance_squared (const float2 &a, const float2 &b) |
| static isect_result | isect_seg_seg (const float2 &v1, const float2 &v2, const float2 &v3, const float2 &v4) |
Public Attributes | |
| float | x |
| float | y |
Friends | |
| float2 | operator+ (const float2 &a, const float2 &b) |
| float2 | operator- (const float2 &a, const float2 &b) |
| float2 | operator* (const float2 &a, float b) |
| float2 | operator/ (const float2 &a, float b) |
| float2 | operator* (float a, const float2 &b) |
| std::ostream & | operator<< (std::ostream &stream, const float2 &v) |
| bool | operator== (const float2 &a, const float2 &b) |
| bool | operator!= (const float2 &a, const float2 &b) |
Definition at line 23 of file BLI_float2.hh.
|
default |
Referenced by abs().
|
inline |
Definition at line 28 of file BLI_float2.hh.
|
inlineexplicit |
Definition at line 32 of file BLI_float2.hh.
|
inlineexplicit |
Definition at line 36 of file BLI_float2.hh.
Definition at line 40 of file BLI_float2.hh.
|
inline |
Definition at line 44 of file BLI_float2.hh.
Definition at line 150 of file BLI_float2.hh.
References Freestyle::a, fabsf, and float2().
Definition at line 155 of file BLI_float2.hh.
References Freestyle::a.
Definition at line 160 of file BLI_float2.hh.
References Freestyle::a, KDL::diff(), and dot().
Definition at line 140 of file BLI_float2.hh.
References Freestyle::a, x, and y.
Referenced by distance_squared().
|
inline |
Definition at line 101 of file BLI_float2.hh.
|
inlinestatic |
Definition at line 145 of file BLI_float2.hh.
References Freestyle::a, and t.
|
inline |
Definition at line 68 of file BLI_float2.hh.
|
static |
Definition at line 34 of file math_vec.cc.
References blender::float2::isect_result::kind, blender::float2::isect_result::lambda, blender::float2::isect_result::LINE_LINE_COLINEAR, blender::float2::isect_result::LINE_LINE_CROSS, blender::float2::isect_result::LINE_LINE_EXACT, blender::float2::isect_result::LINE_LINE_NONE, blender::float2::isect_result::mu, v1, and v2.
|
inline |
Definition at line 58 of file BLI_float2.hh.
References len_v2().
|
inline |
Definition at line 63 of file BLI_float2.hh.
References len_squared_v2().
|
inline |
Definition at line 53 of file BLI_float2.hh.
References x.
|
inline |
Definition at line 48 of file BLI_float2.hh.
References x.
Definition at line 87 of file BLI_float2.hh.
Definition at line 73 of file BLI_float2.hh.
Definition at line 80 of file BLI_float2.hh.
Definition at line 94 of file BLI_float2.hh.
Definition at line 187 of file BLI_float2.hh.
Definition at line 118 of file BLI_float2.hh.
Definition at line 129 of file BLI_float2.hh.
Definition at line 108 of file BLI_float2.hh.
Definition at line 113 of file BLI_float2.hh.
Definition at line 123 of file BLI_float2.hh.
|
friend |
Definition at line 134 of file BLI_float2.hh.
Definition at line 182 of file BLI_float2.hh.
| float blender::float2::x |
Definition at line 24 of file BLI_float2.hh.
Referenced by dot(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_content_cell(), blender::io::gpencil::GpencilIO::gpencil_3D_point_to_render_space(), blender::io::gpencil::GpencilIO::gpencil_3D_point_to_screen_space(), hash(), operator const float *(), operator float *(), operator*=(), operator+=(), operator-=(), operator/=(), and blender::io::gpencil::GpencilIO::prepare_camera_params().
| float blender::float2::y |
Definition at line 24 of file BLI_float2.hh.
Referenced by dot(), blender::io::gpencil::GpencilIO::gpencil_3D_point_to_render_space(), hash(), operator*=(), operator+=(), operator-=(), operator/=(), and blender::io::gpencil::GpencilIO::prepare_camera_params().