compas.geometry.mirror_vector_vector

compas.geometry.mirror_vector_vector(v1, v2)[source]

Mirrors vector about vector.

Parameters
  • v1 (list of float) – The vector.

  • v2 (list of float) – The normalized vector as mirror axis

Returns

list of float – The mirrored vector.

Notes

For more info, see 1.

References

1

Math Stack Exchange. How to get a reflection vector? Available at: https://math.stackexchange.com/questions/13261/how-to-get-a-reflection-vector.