Comments (2)
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.
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)
- In Vector3 Equals methods are missing a comparison for the z field HOT 2
- Needs more pi HOT 5
- Visual Studio 2010 Specific Solution HOT 1
- Integer Vector HOT 4
- Append 'Create' the the static methods on the Matrix, Quaternion, etc HOT 2
- Quaternion.SquadSetup
- Refraction Functions HOT 1
- Missing constructor in Plane HOT 2
- Missing Half/Half2/Half3/Half4 classes HOT 4
- Plane scaling HOT 3
- Color3.ToString() uses invalid format string HOT 4
- We need a GJK implementation HOT 8
- Half type incomplete and incorrect. HOT 1
- RayIntersectsPlane HOT 3
- Matrix.Multiply(ref Matrix, ref Matrix, out Matrix) overlap HOT 1
- Is this project still running ? HOT 4
- Incorrect parameter order in Collision.cs line 1409 HOT 1
- FieldPropertyDescriptor constructor is broken HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slimmath.