add .editorconfig

This commit is contained in:
ikpil 2023-08-17 23:28:00 +09:00
parent 5ee837dfdd
commit e819b20373
2 changed files with 21 additions and 2 deletions

19
.editorconfig Normal file
View File

@ -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

View File

@ -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;