mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
fix doc test
This commit is contained in:
parent
c81fbf50c4
commit
560d5c3153
@ -119,19 +119,19 @@ impl Dir {
|
||||
/// use veloren_world::site2::util::Dir;
|
||||
/// let dir = Dir::X;
|
||||
///
|
||||
/// assert_eq!(dir.to_mat3x3() * Vec3::new(1, 0, 0), dir.to_vec3());
|
||||
/// assert_eq!(dir.to_mat3() * Vec3::new(1, 0, 0), dir.to_vec3());
|
||||
///
|
||||
/// let dir = Dir::NegX;
|
||||
///
|
||||
/// assert_eq!(dir.to_mat3x3() * Vec3::new(1, 0, 0), dir.to_vec3());
|
||||
/// assert_eq!(dir.to_mat3() * Vec3::new(1, 0, 0), dir.to_vec3());
|
||||
///
|
||||
/// let dir = Dir::Y;
|
||||
///
|
||||
/// assert_eq!(dir.to_mat3x3() * Vec3::new(1, 0, 0), dir.to_vec3());
|
||||
/// assert_eq!(dir.to_mat3() * Vec3::new(1, 0, 0), dir.to_vec3());
|
||||
///
|
||||
/// let dir = Dir::NegY;
|
||||
///
|
||||
/// assert_eq!(dir.to_mat3x3() * Vec3::new(1, 0, 0), dir.to_vec3());
|
||||
/// assert_eq!(dir.to_mat3() * Vec3::new(1, 0, 0), dir.to_vec3());
|
||||
/// ```
|
||||
pub fn to_mat3(self) -> Mat3<i32> {
|
||||
match self {
|
||||
|
Loading…
Reference in New Issue
Block a user