mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-27 02:12:31 +08:00
Fix sphinx/build_docs warnings for linear_algebra (#12483)
* Fix sphinx/build_docs warnings for linear_algebra/ * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@ -3,13 +3,15 @@
|
||||
|
||||
I have added the codes for reflection, projection, scaling and rotation 2D matrices.
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
scaling(5) = [[5.0, 0.0], [0.0, 5.0]]
|
||||
rotation(45) = [[0.5253219888177297, -0.8509035245341184],
|
||||
[0.8509035245341184, 0.5253219888177297]]
|
||||
projection(45) = [[0.27596319193541496, 0.446998331800279],
|
||||
[0.446998331800279, 0.7240368080645851]]
|
||||
reflection(45) = [[0.05064397763545947, 0.893996663600558],
|
||||
[0.893996663600558, 0.7018070490682369]]
|
||||
rotation(45) = [[0.5253219888177297, -0.8509035245341184],
|
||||
[0.8509035245341184, 0.5253219888177297]]
|
||||
projection(45) = [[0.27596319193541496, 0.446998331800279],
|
||||
[0.446998331800279, 0.7240368080645851]]
|
||||
reflection(45) = [[0.05064397763545947, 0.893996663600558],
|
||||
[0.893996663600558, 0.7018070490682369]]
|
||||
"""
|
||||
|
||||
from math import cos, sin
|
||||
|
Reference in New Issue
Block a user