Comments (1)
Mm. I'm going to have to change the generic implementation of HasValues again. To do this pixel calculation, I need to add sqrt(3). I can't add sqrt(3) to type T because I can't enforce that type T implements Add<f32>
because i32 doesn't do that.
So. Maybe HasValues will not be generic, and all values returned will always be f32 values?
from hex_math.
Related Issues (20)
- Make Point/etc a tuple struct, eliminate new() HOT 2
- Improve on HasValues, generics, etc.
- Make a CubePoint instead of Point::s()
- Consider making some newtype structs HOT 2
- Refactor the generic line() function HOT 2
- Combine range() and flood() HOT 9
- Maybe extract Predicate trait into a library HOT 2
- Make a line iterator HOT 3
- Convert denumerate() function into an iterator adapter
- Generic Point<T> instead of FloatPoint/etc HOT 1
- Implement Point functionality in a trait HOT 4
- Forgot to remove Predicate trait
- Travel should have specialized functions HOT 2
- Implement functions using Into instead of Borrow HOT 2
- Make a Vector(i32, i32, i32) newtype HOT 2
- Refactor base_ring implementation HOT 1
- Move line iterator, denumerate() out of traits::line HOT 1
- Separate line/ray into separate packages
- point.direction(other) instead of Direction::from((point, other))
- Make a prelude
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 hex_math.