affn
EstableCompile-time safe affine coordinate transformations with reference frame tracking.
2 estrelles
0 forks
Rust
AGPL-3.0
Actualitzat avui
Per què existeix
affn powers Siderust's coordinate system, encoding reference frames and centers in the type system. Prevents mixing incompatible coordinate systems at compile time.
Funcionalitats clau
- SIMD-optimized operations
- Const-friendly APIs
- Serde support
- No-std compatible
Primers passos
# Add to your Cargo.toml
[dependencies]
affn = "0.1"
# Transform some points
use affn::{Point2, Transform2};
let transform = Transform2::rotate(45.0_f32.to_radians())
.then_translate(10.0, 5.0);
let point = Point2::new(1.0, 0.0);
let transformed = transform.apply(point); Contribuir
Donem la benvinguda a les contribucions! Aquí tens com pots ajudar:
- 1 Fes un fork del repositori i crea la teva branca des de main
- 2 Fes els teus canvis i afegeix tests si s'escau
- 3 Assegura't que tots els tests passen amb cargo test
- 4 Envia un pull request amb una descripció clara
Llicència
Aquest projecte està llicenciat sota la llicència AGPL-3.0. Consulta el fitxer LICENSE per a més detalls.
Enllaços ràpids
Etiquetes
math graphics geometry rust