diff options
| author | mat <github@matdoes.dev> | 2022-12-08 18:39:35 -0600 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-12-08 18:39:35 -0600 |
| commit | 70e2dfed16da8d5130460ea15b47701e622f4a9f (patch) | |
| tree | 41f670baf3a05ed180880ec2a11d8e5f6a1a1599 /azalea-core/src/position.rs | |
| parent | f2076daba5cfcce81399b075ba9258fbdc2012fa (diff) | |
| download | azalea-drasl-70e2dfed16da8d5130460ea15b47701e622f4a9f.tar.xz | |
wrap_comments = true
Diffstat (limited to 'azalea-core/src/position.rs')
| -rwxr-xr-x | azalea-core/src/position.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/azalea-core/src/position.rs b/azalea-core/src/position.rs index 6c18d147..ea54c60c 100755 --- a/azalea-core/src/position.rs +++ b/azalea-core/src/position.rs @@ -126,7 +126,8 @@ pub struct BlockPos { vec3_impl!(BlockPos, i32); impl BlockPos { - /// Get the absolute center of a block position by adding 0.5 to each coordinate. + /// Get the absolute center of a block position by adding 0.5 to each + /// coordinate. pub fn center(&self) -> Vec3 { Vec3 { x: self.x as f64 + 0.5, @@ -176,7 +177,8 @@ impl ChunkBlockPos { } } -/// The coordinates of a block inside a chunk section. Each coordinate must be in the range [0, 15]. +/// The coordinates of a block inside a chunk section. Each coordinate must be +/// in the range [0, 15]. #[derive(Clone, Debug, Default, PartialEq, Eq)] pub struct ChunkSectionBlockPos { pub x: u8, |
