GithubHelp home page GithubHelp logo

cdm's People

Contributors

charlesseizilles avatar danieletrimarchi avatar iconeus-bot-jenkins avatar icophelie avatar kalkhas avatar wubicookie avatar

Watchers

 avatar  avatar

cdm's Issues

No effect of one specialization of collides line and line in cdm math

cdm_math.hpp ligne 6809
template
constexpr void collides(line_T<T, line_representation::Points> l1,
line_T<T, line_representation::Points> l2,
vector2_T& intersection)
{
const T x1 = l1.p1.x;
const T x2 = l1.p2.x;
const T x3 = l2.p1.x;
const T x4 = l2.p2.x;
const T y1 = l1.p1.y;
const T y2 = l1.p2.y;
const T y3 = l2.p1.y;
const T y4 = l2.p2.y;

return {
	((x1 * y1 - y1 * x2) * (x3 - x4) - (x1 - x2) * (x3 * x4 - y3 * x4)) /
		((x1 - x2) * (y3 - y4) - (y1 - y2) * (x3 - x4)),
		((x1 * y1 - y1 * x2) * (y3 - y4) - (y1 - y2) * (x3 * x4 - y3 * x4)) /
		((x1 - x2) * (y3 - y4) - (y1 - y2) * (x3 - x4)) };

}

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.