Fix some minor typos

This commit is contained in:
Kolibroid committed 2024-08-19 17:52:04 +01:00
1 parent 43fbb6a68d
commit 1a21290e0f
14 files changed
+27 -27

No files matched your search

+2 -2
View File
@@ -14,7 +14,7 @@ impl<T: Math + Copy> Vector3<T> {
Vector3 { x, y, z }
}
pub fn length_sqared(&self) -> T {
pub fn length_squared(&self) -> T {
self.x * self.x + self.y * self.y + self.z * self.z
}
@@ -45,7 +45,7 @@ impl<T: Math + Copy> Vector3<T> {
impl<T: Math + Copy + Float> Vector3<T> {
pub fn length(&self) -> T {
self.length_sqared().sqrt()
self.length_squared().sqrt()
}
pub fn normalize(&self) -> Self {
let length = self.length();
+1 -1
View File
@@ -81,7 +81,7 @@ impl Level {
// /// Read one chunk in the world
// ///
// /// Do not use this function if reading many chunks is required, since in case those two chunks which are read seperately using `.read_chunk` are in the same region file, it will need to be opened and closed separately for both of them, leading to a performance loss.
// /// Do not use this function if reading many chunks is required, since in case those two chunks which are read separately using `.read_chunk` are in the same region file, it will need to be opened and closed separately for both of them, leading to a performance loss.
// pub async fn read_chunk(&self, chunk: (i32, i32)) -> Result<ChunkData, WorldError> {
// self.read_chunks(vec![chunk])
// .await