I Really like the code. Even that i could study it myself , what the purpose of 0,25 and level ( that go to 3 to 0) in the result drawing ( number of points and lines) ? sometime we see bezier curve in realtime but ask how location of point is place on each line even i understand that more we go to the end ( time for draw each point on the line) more the location of the point on the line is place near the end of the line . What is shure is that curve don't really exist, all is a matter of precision, all is in final list of lines. It is really strange that C# default library don't have Point in double like manifold Point. Microsoft use float ( in System.Drawing PointF.X=32.012f f mean float litteral ! and must be use explicitly , cast don't work with 32.012) and and int ( Point.X=32 no letter in the end so if by default int).In away shapefile for point coordinnate (refer to specification ) use double or integer and for web svg commonly use 3 numbers after the point ( x,yyy ). it is also strange that decimal ( with m in the end to use more bytes than f=float) never use for Point in gis !! has many context : - angle mesure 1(decimal) rad = ( + north east) 180°/π - int num = 12 ( decimal) = 0xC ( hexadecimal) = 0b1100 ( binary) ; - Sytem.Decimal compare System.double and System.Single ( float) and System.Int32 (alias int ) so var has different type in var a = 1m; Console.WriteLine($"a.type= : {a.GetType()}"); var b = 1f; Console.WriteLine($"b.type= : {b.GetType()}"); var c = 1; Console.WriteLine($"c.type= : {c.GetType()}"); Attachments: spline.png
Book about Science , cosmological model , Interstellar travels Boyle surface fr ,en |