Skip to content

Commit

Permalink
Added linebreak for improved readability
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuzu-Typ committed Oct 14, 2024
1 parent 6e12232 commit 895c563
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down
3 changes: 2 additions & 1 deletion README.sb
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 895c563

Please sign in to comment.