diff options
Diffstat (limited to 'source')
3 files changed, 13 insertions, 13 deletions
diff --git a/source/blender/editors/space_view3d/view3d_navigate_fly.c b/source/blender/editors/space_view3d/view3d_navigate_fly.c index fd4fd5051b1..e2fa0fdc6a5 100644 --- a/source/blender/editors/space_view3d/view3d_navigate_fly.c +++ b/source/blender/editors/space_view3d/view3d_navigate_fly.c @@ -808,10 +808,10 @@ static int flyApply(bContext *C, FlyInfo *fly, bool is_confirm) moffset[1] = 0; } - /* scale the mouse movement by this value - scales mouse movement to the view size - * moffset[0] / (region->winx-xmargin * 2) - window size minus margin (same for y) + /* Scale the mouse movement by this value - scales mouse movement to the view size + * `moffset[0] / (region->winx-xmargin * 2)` - window size minus margin (same for y) * - * the mouse moves isn't linear */ + * the mouse moves isn't linear. */ if (moffset[0]) { moffset[0] /= fly->width - (xmargin * 2); diff --git a/source/blender/functions/FN_cpp_type_make.hh b/source/blender/functions/FN_cpp_type_make.hh index 529ec261946..b8e5373ccf7 100644 --- a/source/blender/functions/FN_cpp_type_make.hh +++ b/source/blender/functions/FN_cpp_type_make.hh @@ -186,7 +186,7 @@ template<typename T> uint64_t hash_cb(const void *value) } // namespace blender::fn::cpp_type_util /** - * Different types support different features. Features like copy constructibility can be detected + * Different types support different features. Features like copy constructability can be detected * automatically easily. For some features this is harder as of C++17. Those have flags in this * enum and need to be determined by the programmer. */ diff --git a/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_circle.cc b/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_circle.cc index 93ca5a1a677..963c48b7536 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_circle.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_circle.cc @@ -96,21 +96,21 @@ static std::unique_ptr<CurveEval> create_point_circle_curve( MutableSpan<float3> positions = spline->positions(); float3 center; - /* Midpoints of P1->P2 and P2->P3. */ + /* Midpoints of `P1->P2` and `P2->P3`. */ const float3 q1 = float3::interpolate(p1, p2, 0.5f); const float3 q2 = float3::interpolate(p2, p3, 0.5f); - /* Normal Vectors of P1->P2 and P2->P3*/ + /* Normal Vectors of `P1->P2` and `P2->P3` */ const float3 v1 = (p2 - p1).normalized(); const float3 v2 = (p3 - p2).normalized(); - /*Normal of plane of main 2 segments P1->P2 and P2->P3. */ + /* Normal of plane of main 2 segments P1->P2 and `P2->P3`. */ const float3 v3 = float3::cross(v1, v2).normalized(); - /*Normal of plane of first perpendicular bisector and P1->P2. */ + /* Normal of plane of first perpendicular bisector and `P1->P2`. */ const float3 v4 = float3::cross(v3, v1).normalized(); - /* Determine Centerpoint from the intersection of 3 planes. */ + /* Determine Center-point from the intersection of 3 planes. */ float plane_1[4], plane_2[4], plane_3[4]; plane_from_point_normal_v3(plane_1, q1, v3); plane_from_point_normal_v3(plane_2, q1, v1); @@ -121,13 +121,13 @@ static std::unique_ptr<CurveEval> create_point_circle_curve( return nullptr; } - /* Get the radius from the centerpoint to p1. */ + /* Get the radius from the center-point to p1. */ const float r = float3::distance(p1, center); const float theta_step = ((2 * M_PI) / (float)resolution); for (const int i : IndexRange(resolution)) { - /* Formula for a circle around a point and 2 unit vectors perp. to each other and the axis of - * the cirlce from + /* Formula for a circle around a point and 2 unit vectors perpendicular. + * to each other and the axis of the circle from: * https://math.stackexchange.com/questions/73237/parametric-equation-of-a-circle-in-3d-space */ @@ -224,4 +224,4 @@ void register_node_type_geo_curve_primitive_circle() ntype.geometry_node_execute = blender::nodes::geo_node_curve_primitive_circle_exec; ntype.draw_buttons = geo_node_curve_primitive_circle_layout; nodeRegisterType(&ntype); -}
\ No newline at end of file +} |