Coder Social home page Coder Social logo

nine.geometry's People

Contributors

erictuvesson avatar yufeih avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

mrg7 jtone123 hengle

nine.geometry's Issues

MathHelper?

Should we add something alike MathHelper?

Depend on System.Numerics.Vectors

System.Numerics.Vectors is the core type of Vectors and Matrix in corefx. Using types under that package allows us to be SIMD ready and interoperable with other libraries. We should drop the types under MonoGame

Implementation does use ref optimization

Take this as an example:

        public void Contains(ref BoundingBox boundingBox, out ContainmentType result) => result = this.Contains(boundingBox);

        public ContainmentType Contains(BoundingBox boundingBox)
        {
            ContainmentType result;
            Intersection.Intersect(ref boundingBox, ref this, out result);
            return result;
        }

BoundingBox.Contains(ref BoundingBox) calls Contains(BoundingBox), which causes the box to be copied.

In addition, not all contains method has a ref counter part. E.g., we have a Contains(BoundingFrustum) but there is no Contains(ref BoundingFrustum)

The suggestion is to move all these containment test methods into Intersection, each method has a Contains(struct) and Contains(ref struct) pair. BoundingBox only contain basic methods that does not take a ref structures, like Contains(Vector3) and Intersects(BoundingBox).

Targeted Frameworks

What frameworks would be best to support?

Apparently dnx451 == dotnet5.4 which changed a while ago, so that should be fixed.
And dnxcore50 falls under dotnet from what I understand.

ISpatialQueryable for 2D and 3D?

Should there be two different types of ISpatialQueryable one for 2D and one for 3D?

So QuadTree would only work with 2D and Octree would only work with 3D.

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.