Merge pull request #17 from cmr/master

pkgid and make dead code public
This commit is contained in:
Brendan Zabarauskas 2013-12-17 18:20:31 -08:00
commit c8134ee828
2 changed files with 2 additions and 6 deletions

View file

@ -13,11 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#[link(name = "cgmath",
vers = "0.1",
author = "Brendan Zabarauskas",
url = "https://github.com/bjz/cgmath-rs")];
#[pkgid="cgmath#0.1"];
#[comment = "A mathematics library for computer graphics."];
#[license = "ASL2"];
#[crate_type = "lib"];

View file

@ -170,7 +170,7 @@ pub trait Vector
#[inline] fn comp_max(&self) -> S { self.fold(|a, b| a.max(b)) }
}
#[inline] fn dot<S: Primitive, Slice, V: Vector<S, Slice>>(a: V, b: V) -> S { a.dot(&b) }
#[inline] pub fn dot<S: Primitive, Slice, V: Vector<S, Slice>>(a: V, b: V) -> S { a.dot(&b) }
impl<S: Primitive> One for Vec2<S> { #[inline] fn one() -> Vec2<S> { Vec2::ident() } }
impl<S: Primitive> One for Vec3<S> { #[inline] fn one() -> Vec3<S> { Vec3::ident() } }