Coder Social home page Coder Social logo

svg.math.js's People

Stargazers

Kiryll Kulakowski avatar  avatar listenwhy avatar Vegard Fjellbo avatar Limingjun avatar Logan King (DarkComet) avatar  avatar Jared.Liu avatar 郭之存 avatar MULX avatar Mudin Ibrahim avatar lizz avatar  avatar Efrem Ropelato avatar Arif Hanif avatar Andrew Proper avatar huwence avatar Esse avatar Valentyn avatar  avatar Aaron Dalton avatar mauricio gamarra avatar iilei • jochen preusche avatar Tou fik avatar Vigneshkumar Chinnachamy avatar Gar avatar Konstantinos Papageorgiou avatar  avatar 早晨海风 avatar Luc BORIES avatar Ardiansyah Putra avatar Vasiliy Kuzmenko avatar  avatar 任羽飞 avatar Keel avatar  avatar  avatar 鲁瑛琪 avatar Aleksandar.B avatar Rakesh Reddy avatar Allen Bargi avatar  avatar Asko Kauppi avatar  avatar timelyportfolio avatar Guilherme Schutz avatar MIkhail Gulyaev avatar Z avatar Boris Cherny avatar Erel Segal-Halevi avatar Hans Kristian Flaatten avatar J. Voigt avatar  avatar Wout avatar

Watchers

James Cloos avatar Nils Lagerkvist avatar Asko Kauppi avatar  avatar  avatar

svg.math.js's Issues

Rectangle type

Hi,

I am doing some research on rectangles, and would like to create a Rectangle type. Would you like to add this type to svg.math.js? It will probably have methods such as: containsPoint, intersectsRect, etc.

LICENSE file

Could you please add a LICENSE file to the repository so it is more clear how your code is licensed? Thanks!

radus

Line 85

                            var radius = attr.radus || 5;

This seems like a typo.

Additionally, it is not clear what "attr" is. The argument is called "options".

Moves in the wrong direction when line is vertical

If you use line.move() and the source and destination points are in a vertical line (i.e. both have the same x co-ordinate) then it moves in the wrong direction.

Example:
alert( new SVG.math.Line( new SVG.math.Point( 100, 100 ),
new SVG.math.Point( 100, 200 ) ).move(
new SVG.math.Point( 100, 100 ),
new SVG.math.Point( 100, 200 ), 10 ) .y );

Returns 90 (i.e. moving up) but should return 110 (moving down, along the line).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.