diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..73e5b43 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,19 @@ +############################### +# Core EditorConfig Options # +############################### +root = true + +# All files +[*] +indent_style = space +charset = utf-8 + +[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj,props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct,proto,json}] +indent_size = 2 + +[*.cs] +indent_size = 4 + +# Wrapping preferences +csharp_preserve_single_line_statements = true +csharp_preserve_single_line_blocks = true \ No newline at end of file diff --git a/src/DotRecast.Detour/DtUtils.cs b/src/DotRecast.Detour/DtUtils.cs index 08619b1..9171253 100644 --- a/src/DotRecast.Detour/DtUtils.cs +++ b/src/DotRecast.Detour/DtUtils.cs @@ -346,12 +346,12 @@ namespace DotRecast.Detour out int segMin, out int segMax) { const float EPS = 0.000001f; - + tmin = 0; tmax = 1; segMin = -1; segMax = -1; - + var dir = p1.Subtract(p0); var p0v = p0;