cgmath/src/cgmath.rs

63 lines
1.9 KiB
Rust
Raw Normal View History

2014-05-26 17:10:04 +00:00
// Copyright 2013-2014 The CGMath Developers. For a full listing of the authors,
// refer to the AUTHORS file at the top-level directory of this distribution.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
2014-04-01 11:00:17 +00:00
#![crate_type = "rlib"]
#![crate_type = "dylib"]
#![comment = "A mathematics library for computer graphics."]
#![license = "ASL2"]
#![feature(globs)]
#![feature(macro_rules)]
2013-10-12 19:56:05 +00:00
2014-05-25 11:10:44 +00:00
//! Computer graphics-centric math.
2014-05-25 20:52:01 +00:00
//!
//! This crate provides useful mathematical primitives and operations on them.
2014-05-25 21:35:46 +00:00
//! It is organized into one module per primitive. The core structures are
//! vectors and matrices. A strongly-typed interface is provided, to prevent
//! mixing units or violating mathematical invariants.
//!
//! Transformations are not usually done directly on matrices, but go through
//! transformation objects that can be converted to matrices. Rotations go
//! through the `Basis` types, which are guaranteed to be orthogonal matrices.
//! Despite this, one can directly create a limited rotation matrix using the
//! `look_at`, `from_angle`, `from_euler`, and `from_axis_angle` methods.
//! These are provided for convenience.
2014-05-25 20:52:01 +00:00
2014-05-28 17:20:23 +00:00
pub mod array;
2014-05-25 01:22:23 +00:00
pub mod matrix;
pub mod quaternion;
pub mod vector;
2013-09-03 05:23:56 +00:00
2013-09-04 02:20:53 +00:00
pub mod angle;
2013-09-05 07:19:31 +00:00
pub mod plane;
2013-09-04 02:20:53 +00:00
pub mod point;
pub mod line;
2013-09-03 10:07:59 +00:00
pub mod ray;
2013-09-05 07:19:31 +00:00
pub mod rotation;
pub mod transform;
2013-09-03 10:07:59 +00:00
2013-09-03 05:23:56 +00:00
pub mod projection;
2013-09-03 06:37:06 +00:00
2013-09-05 07:19:31 +00:00
pub mod aabb;
pub mod cylinder;
2013-09-10 04:51:14 +00:00
pub mod frustum;
pub mod intersect;
2013-09-05 07:19:31 +00:00
pub mod obb;
pub mod sphere;
2014-01-09 00:26:50 +00:00
pub mod approx;
2014-05-26 17:10:04 +00:00
pub mod num;