Coder Social home page Coder Social logo

Comments (2)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 10, 2024
The Perp operator you are speaking of is technically the cross product in 2D. 
Because the binary form of the cross product (that gives a vector result) is 
only defined in 3 and 7 dimensions, a normal cross product for Vector2 does not 
exist. However, an 'artifical' cross product can be made for n dimensions by 
taking n-1 vector arguments and giving out a Vectorn result. This means that 
the Perp operator is technically the cross product in 2D. This is the reason we 
don't have a Cross product method in the Vector2 and Vector4 classes.

That aside I will implement the Perp operator and most likely the PerpDot 
operation for Vector2.

As for the double precision version of the library, it is not planned because 
C# does not support #define symbols that take on a value and C# does not 
support macros. This makes it hard to create an elegant solution for both 
single and double precision. Any suggestions will be welcome on this issue.

Original comment by [email protected] on 14 Feb 2011 at 8:04

  • Changed state: Accepted
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

from slimmath.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 10, 2024
I added Perp and PerpDot methods to the Vector2 structure in r41.

Original comment by [email protected] on 15 Feb 2011 at 1:13

  • Changed state: Fixed
  • Added labels: ****
  • Removed labels: ****

from slimmath.

Related Issues (19)

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.