Skip to content

Releases: Rob2309/gfx-maths-rs

v0.2.9

12 Mar 20:17
Compare
Choose a tag to compare

Implemented Display implementations for most types

Release v0.2.8

09 Feb 07:37
Compare
Choose a tag to compare

Changes

  • Added extend() methods to add a component to a vector
let a = Vec2::new(0.0, 1.0);
let b = a.extend(2.0);

assert_eq!(b, Vec3::new(0.0, 1.0, 2.0));
  • Added the swizzle feature which allows swizzling vector values
let a = Vec2::new(1.0, 2.0);
let b = a.xxyy();

assert_eq!(b, Vec4::new(1.0, 1.0, 2.0, 2.0));