mе trying to do something with matrices

Overview

Matrix

Oh yes. Matrices.

Contents

  • matrix - core lib (just matrix addition and multiplication)
  • matrix_graphics - using rotation matrix to rotate things (polygons by default)

matrix_graphics

Run

cargo run

Configure

Edit these constants to configure code.

const WIDTH: u32 = 640;
// width of window
const HEIGHT: u32 = 480;
// height of window
const POLYGON: usize = 7;
// count of sides of generated polygon (>= 2 for math reasons) 
const CENTER_X: u32 = 320;
// center of polygon by X
const CENTER_Y: u32 = 240;
// center of polygon by Y
const RADIUS: u32 = 100;
// radius of polygon
const DEFAULT_ANGLE: f64 = 0.;
//default rotation angle (in radians)

License

All code is available under the terms of the MIT license.

You might also like...
A crate to convert bytes to something more useable and the other way around in a way Compatible with the Confluent Schema Registry. Supporting Avro, Protobuf, Json schema, and both async and blocking.
A crate to convert bytes to something more useable and the other way around in a way Compatible with the Confluent Schema Registry. Supporting Avro, Protobuf, Json schema, and both async and blocking.

#schema_registry_converter This library provides a way of using the Confluent Schema Registry in a way that is compliant with the Java client. The rel

📎 Do something on your clipboard, automatically.

📎 autoclip Do something on your clipboard, automatically. ✨ Features Automatic Customisable with Plugins 📦 Installation $ cargo build --release 🔌

Ointers is a library for representing pointers where some bits have been stolen so that they may be used by the programmer for something else

Ointers is a library for representing pointers where some bits have been stolen so that they may be used by the programmer for something else. In effect, it's a small amount of free storage

Use enum to filter something, support | and & operator.
Use enum to filter something, support | and & operator.

Filter Use enum to filter something, support | and & operator. Just need to implement Filter Trait with filter-macros crate. How to work Example #[add

vault client using jwt authentication that define environment variables from vault secrets before executing into something else

envlt envlt, like env, allows you to define environment variables and then execute into something else, but instead of static values, it uses using si

Use enum to predicate something, support | and & operator.
Use enum to predicate something, support | and & operator.

Predicate Use enum to predicate something. Just need to implement Predicate Trait with predicate-macros crate, support | and & operator. Don't impleme

What if there's something important in there?

wateor What is this? This command line tool will collect all the untracked files in your repo, create a bzip2-compressed tar file from them, encrypt t

Sample code of Yew (0.18). Something like a PuyoPuyo.

RusRus Requirements Docker Depend on Yew ver 0.18.0 Usase docker build -t rusrus . # start serve docker run -p 8080:8080 --rm -it -v $(pwd):/app -w /

A simple programming language for something between C and Rust.

inuc inuc is a systems programming language that is something between C and Rust. Features : [] Strong , static typing (type inference not a priority

For something between the likes of a toy bootloader or tiny kernel and Arch Linux.

For something between the likes of a toy bootloader or tiny kernel and Arch Linux.

Dumping some code from ~May 2022. Intended to accompany blog post or something.

An example project where Rust code prints the length of an uploaded file. Run python3 -m http.server (or equivalent: https://gist.github.com/willurd/5

A workflow tool for quickly running / testing something you are working on

runfast What is it? This is a program intended to be run in a project directory to set up a project run command, and remember it so we dont have to ty

Owner
Ivan Bushchik
/ivɑːˈbus/
Ivan Bushchik
Command line tool for computing gigantic correlation matrices

turbocor This is little program designed to compute (sparse) Pearson correlation matrices as efficiently as possible. The main ideas are thus: Pairwis

Daniel C. Jones 31 Nov 5, 2021
A lightweight platform-accelerated library for biological motif scanning using position weight matrices.

?? ?? lightmotif A lightweight platform-accelerated library for biological motif scanning using position weight matrices. ??️ Overview Motif scanning

Martin Larralde 16 May 4, 2023
Trying embedded Rust on the Pinecil GD32VF103 RISC-V device.

Pinecil GD32VF103 RISC-V Rust Demos My personal collection of Rust demos running on the PINE64 Pinecil portable soldering iron, featuring a GD32VF103T

alvinhochun 39 Nov 28, 2022
👁️ See through bad bots trying to lie about their user agents

Odd Eye Detect bad bots trying to disguise themselves as humans. Features HTTP2 connection fingerprints TLS signatures Canvas fingerprints How it work

Xetera 31 Dec 14, 2022
secmem-proc is a crate designed to harden a process against low-privileged attackers running on the same system trying to obtain secret memory contents of the current process.

secmem-proc is a crate designed to harden a process against low-privileged attackers running on the same system trying to obtain secret memory contents of the current process. More specifically, the crate disables core dumps and tries to disable tracing on unix-like OSes.

null 3 Dec 19, 2022
This is my painful experience trying to use sensors in Rapier2D and NPhysics

Sensor-Pain This is my painful experience trying to use sensors in Rapier2D and NPhysics. We're using a sensor on the player box to detect if the play

null 0 Dec 24, 2021
TODO pass transform struct instead of trying to modify particles everywhere.

Sparticles RS TODO pass transform struct instead of trying to modify particles everywhere. Roadmap add animations. move particle away if on top of eac

Joris Willems 1 Aug 25, 2022
Trying to solve Advent of Code 2022 in 25 different languages (1 day = 1 language)

Advent of Code 2022: 15/25 langs I’ll try to solve this Advent of Code using different language for each day. Any programs needed to run the code will

Max “Goldstein” Siling 2 Dec 15, 2022
This Repo Contains my Week Long Journey Trying to Learn Rust Programming Language 🦀.

the-rust-way This Repo Contains my Week Long Journey Trying to Learn Rust Programming Language ?? . ?? Thanks to all Wonderful Contributors Thanks a l

Kanishk Pachauri 7 Oct 20, 2022
A Rust implementation of HyperLogLog trying to be parsimonious with memory.

?? HyperLogLog-rs This is a Rust library that provides an implementation of the HyperLogLog (HLL) algorithm, trying to be parsimonious with memory. Wh

Luca Cappelletti 10 May 16, 2023