From 895c563a5523196cd1f3862029c380d6f0ba02a6 Mon Sep 17 00:00:00 2001 From: Zuzu-Typ Date: Mon, 14 Oct 2024 08:32:09 +0200 Subject: [PATCH] Added linebreak for improved readability --- README.md | 3 ++- README.sb | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9423c21..16399d4 100644 --- a/README.md +++ b/README.md @@ -155,7 +155,8 @@ print(f"Rotation matrix (45 degrees around Z-axis):\n{rotation_matrix}") # [ 0 ][ 0 ][ 0 ][ 1 ] # Apply the rotation to a vector -# -> We use a vec4 with the w-component (given vec4(x, y, z, w)) set to 1, to put v1 into homogenous coordinates. +# -> We use a vec4 with the w-component (given vec4(x, y, z, w)) set to 1, +# to put v1 into homogenous coordinates. rotated_vector = rotation_matrix * glm.vec4(v1, 1) print(f"Rotated vector: {rotated_vector}") # Rotated vector: vec4( -0.707107, 2.12132, 3, 1 ) diff --git a/README.sb b/README.sb index e38b719..795445b 100644 --- a/README.sb +++ b/README.sb @@ -153,7 +153,8 @@ print(f"Rotation matrix (45 degrees around Z-axis):\\n{rotation_matrix}") # [ 0 ][ 0 ][ 0 ][ 1 ] # Apply the rotation to a vector -# -> We use a vec4 with the w-component (given vec4(x, y, z, w)) set to 1, to put v1 into homogenous coordinates. +# -> We use a vec4 with the w-component (given vec4(x, y, z, w)) set to 1, +# to put v1 into homogenous coordinates. rotated_vector = rotation_matrix * glm.vec4(v1, 1) print(f"Rotated vector: {rotated_vector}") # Rotated vector: vec4( -0.707107, 2.12132, 3, 1 )