htd / fastbezier Goto Github PK
View Code? Open in Web Editor NEWFast cubic Bezier curve length calculation library
Fast cubic Bezier curve length calculation library
You got:
protected static double Sqrt3 = Math.Sqrt(3);
protected static double Div18Sqrt3 = 18 / Sqrt3;
protected static double OneThird = 1 / 3;
protected static double Sqrt3Div36 = Sqrt3 / 36;
You should add a .0 after the numbers. OneThird is always 0.0 for example.
I'm getting NaN for this values:
var test = new V3D[] {
new V3D(0, 0, 0),
new V3D(10, 0, 0),
new V3D(-10, 0, 0),
new V3D(20, 0, 0)
};
1>D:\work\Tools\FastBezier-master\Program.cs(32,63,32,64): error CS1002: ; expected
1>D:\work\Tools\FastBezier-master\Program.cs(32,65,32,67): error CS1519: Invalid token '&&' in class, struct, or interface member declaration
1>D:\work\Tools\FastBezier-master\Program.cs(32,72,32,74): error CS1519: Invalid token '==' in class, struct, or interface member declaration
1>D:\work\Tools\FastBezier-master\Program.cs(32,77,32,79): error CS1519: Invalid token '&&' in class, struct, or interface member declaration
1>D:\work\Tools\FastBezier-master\Program.cs(32,84,32,86): error CS1519: Invalid token '==' in class, struct, or interface member declaration
1>D:\work\Tools\FastBezier-master\Program.cs(32,89,32,91): error CS1519: Invalid token '&&' in class, struct, or interface member declaration
1>D:\work\Tools\FastBezier-master\Program.cs(32,96,32,98): error CS1519: Invalid token '==' in class, struct, or interface member declaration
1>D:\work\Tools\FastBezier-master\Program.cs(32,100,32,101): error CS1519: Invalid token ';' in class, struct, or interface member declaration
new V3D(0, 0, 0),
new V3D(0, 0.0, 200),
new V3D(0, 0.0, -200),
new V3D(200, 0, 0)
Three Results are:
331.78554392, 331.785589448, 200
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.