mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
add doc comment
This commit is contained in:
parent
560d5c3153
commit
02eadc3002
@ -142,6 +142,8 @@ impl Dir {
|
||||
}
|
||||
}
|
||||
|
||||
/// Creates a matrix that tranforms an upwards facing vector to this
|
||||
/// direction.
|
||||
pub fn from_z_mat3(self) -> Mat3<i32> {
|
||||
match self {
|
||||
Dir::X => Mat3::new(0, 0, -1, 0, 1, 0, 1, 0, 0),
|
||||
|
Loading…
Reference in New Issue
Block a user