Comments (3)
Examples would for Vector3 would be:
Vector3 a + Vector3 b
auto c=a.clone().add(b); return c;
Vector3 a - Vector3 b
auto c=a.clone().sub(b); return c;
Vector3 a * float b
auto c=a.clone().scale(b); return c;
Vector3 a * Vector3 b
auto c=a.clone().scale(b); return c;
Vector3 a / float b
auto c=a.clone().scale(1.0f / b); return c;
Vector3 a / Vector3 b
vector3 bInverted(1.0f / b[0], 1.0f / b[1], 1.0f / b[2]); auto c=a.clone().scale(bInverted); return c;
+=,-=,*=,/= would be interessting too.
Vector2, Vector4, Quaternion and Matrix are similar, but I can also provide a list if required.
from tdme2.
Do you still need this done?
from tdme2.
Hi thank you very much for asking, a colleague is already working on it. If there is any reason to do so I will come back to you.
from tdme2.
Related Issues (17)
- javacpp-port: Use reference instead of pointers to array in method arguments HOT 3
- rendering/gpu-skinning: No skinned mesh objects are displayed using GPU skinning on AMD hardware using Windows 10 HOT 1
- Provide example code HOT 4
- Build-System: Improvements
- gcc-warnings: remove dynamic exception specifications
- Simplify and restructure Makefile
- Class Headers - Move constructors and destructors to the top HOT 1
- Network: Improvements
- Testnode
- Cant find exe file on tdme2 folder... HOT 2
- Please don't drop support for MSYS2 MINGW64 HOT 1
- rendering/shader: Lighting broken on older GL implementations (NetBSD, Haiku) HOT 1
- gui: mouse events will be consumed twice if clicking on floating node on top of a normal node HOT 1
- javacpp-port: Return STL container references instead of pointers if feasible HOT 5
- os/threading: Add header with static methods for atomic add+sub and use it
- audio::decoder::VorbisDecoder should use os::filesystem::FileSystem to load data
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 tdme2.