Comments (1)
This seems like logical behavior, now that I'm used to it--but there doesn't seem to be any elegant way to convert bool2 to bool so it can be used like this.
The pattern is to use math.all
(or math.any depending on your case) as it is the case when you are programming with HLSL.
if (all(vec1 == vec2)) {
...
}
from unity.mathematics.
Related Issues (20)
- Is it determinstic in different platform?Im just want to use burst to speed up my deterministic math lib HOT 1
- How to get in touch regarding a security concern HOT 2
- Why isn't there an implicit cast from Color to float4 and vice-versa? HOT 1
- Use Noise for Voxel Generation?
- Why does `math.sign` return the input type? HOT 2
- Support [Min] attribute on float2, 3, 4
- Is there a reason why sizeof(float4) is not predefined? HOT 2
- Integer vector per-component bitshift HOT 1
- GitHub Advisory Database says "Malware in com.unity.mathematics"
- Performance convert Matrix4x4 into float4x4
- Swizzle property z and w for int2/float2 and w for int3/float3 HOT 3
- [FR] math.all + math.any for multi dimensional boolean HOT 1
- directions (up, down, left, right, forward, backward) for int3 and int2 and one vectors for int2 and int3 HOT 1
- Add Pi Version of Trigometry Functions
- Cyclic dependency error in Test Project with Unity 2021 HOT 1
- Can the same seed generate the same random sequence between different devices HOT 1
- Add basic matrix factorizations
- Remove `IsNaN` checks from `min()` and `max()`
- 64 Bit Quaternion Request
- float4x4.PerspectiveOffCenter(): possible logic flaw?
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 unity.mathematics.