SIGN IN SIGN UP
bevyengine / bevy UNCLAIMED

A refreshingly simple data-driven game engine built in Rust

0 0 59 Rust

transform: Add transform_vector methods (#24319)

# Objective

There isn't a particularly obvious way to transform a vector using a
`Transform` (you have to make an Affine3 first, and then use the matrix)

## Solution

This adds a `transform_vector` method to `Transform` and
`GlobalTransform`, paralleling the `transform_point` method.

## Testing

Added doctests.

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Co-authored-by: Kevin Chen <chen.kevin.f@gmail.com>
L
Lane Kolbly committed
ff01acf2d114690aed2806950b35be28174b885b
Parent: 20ddfc4
Committed by GitHub <noreply@github.com> on 5/21/2026, 1:27:48 PM