dimforge / dimforge/nalgebra

Converting `Reflection` to `Affine`

Open
#1,527 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
4.8k
Forks
565
PR merge metrics
No merged PRs in 30d

Description

Right now, you can convert a `ScaleX` into an `AffineX` with `nalgebra::convert`; I think this uses the [`SubsetOf`](https://docs.rs/nalgebra/latest/nalgebra/geometry/struct.Scale.html#impl-SubsetOf%3CTransform%3CT2,+C,+D%3E%3E-for-Scale%3CT1,+D%3E) trait.

Reflections are _also_ affine transformations, but there's no such conversion available.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing nalgebra::convert and the existing SubsetOf implementation that converts ScaleX to AffineX. Inspect the Reflection and Affine transformation types and their geometry module definitions, then add the analogous conversion and verify that Reflection values convert correctly to Affine transformations.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.