2012-12-10 17:32:48 -08:00
|
|
|
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
2013-02-12 17:07:26 -08:00
|
|
|
pure fn Matrix4<T:Copy>(m11: T, m12: T, m13: T, m14: T,
|
|
|
|
m21: T, m22: T, m23: T, m24: T,
|
|
|
|
m31: T, m32: T, m33: T, m34: T,
|
|
|
|
m41: T, m42: T, m43: T, m44: T)
|
|
|
|
-> Matrix4<T> {
|
2012-08-08 11:52:23 -07:00
|
|
|
|
|
|
|
Matrix4 {
|
|
|
|
m11: m11, m12: m12, m13: m13, m14: m14,
|
|
|
|
m21: m21, m22: m22, m23: m23, m24: m24,
|
|
|
|
m31: m31, m32: m32, m33: m33, m34: m34,
|
|
|
|
m41: m41, m42: m42, m43: m43, m44: m44
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-01-28 10:46:43 -08:00
|
|
|
struct Matrix4<T> {
|
2012-09-06 19:40:15 -07:00
|
|
|
m11: T, m12: T, m13: T, m14: T,
|
|
|
|
m21: T, m22: T, m23: T, m24: T,
|
|
|
|
m31: T, m32: T, m33: T, m34: T,
|
|
|
|
m41: T, m42: T, m43: T, m44: T,
|
2012-08-08 11:52:23 -07:00
|
|
|
}
|
|
|
|
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main() {}
|