https://github.com/wraikny/affogato
https://github.com/wraikny/affogato
fsharp
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/wraikny/affogato
- Owner: wraikny
- License: apache-2.0
- Created: 2019-09-23T02:09:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-06-02T08:42:52.000Z (about 3 years ago)
- Last Synced: 2025-09-21T06:55:25.370Z (9 months ago)
- Topics: fsharp
- Language: F#
- Homepage:
- Size: 155 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fwraikny%2FAffogato?ref=badge_shield)
[](https://github.com/wraikny/Affogato/actions?query=workflow%3ACI)
[](https://www.nuget.org/packages/Affogato/)
# Affogato
## Description
Affgato is a library of F# generic math types for game programming.
Affgato.Advanced provides several practical algorithms.
This is stil in preview now.
## Example
```FSharp
open Affogato
let v1 = Vector2.init 1 0 // int Vector2
let v2 = Vector2.init 2.1f 3.4f // float32 Vector2
let v3 = v1 |> Vector.map float32 // float32 Vector2
let v4 = v2 / v3 .* 2.0f * v2.yy + v3.xx // float32 Vector2
let r1 = Rectangle.init v3 v4 // float32 Vector2 Rectangle
let k = Vector.dot v2 v3 // float32
```
## License
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fwraikny%2FAffogato?ref=badge_large)