6 Commits

Author SHA1 Message Date
40f5c0f462 Added Radians and Degrees to the trig module.
These types allow the correct tracking of the type of angle measurement
being used.
2016-12-01 01:15:24 -05:00
Jason Travis Smith
9306a73f9a Added the Zero and One traits to sigils.
It looks like these may be removed from the standard library soon.
2016-01-06 05:59:38 -05:00
Jason Travis Smith
902aeb5dbe This adds get_size() to all vector implementations.
get_size() was added so that vectors could all be converted to Vector4
when being turned into binary values.

from_str_radix() for floating point numbers was deprecated from the
standard library. Until there is time to write our own implementation
of this floating point numbers will panic on non base 10 string
conversion. Base 10 string conversion will use the from_str function.
2015-12-31 02:58:21 -05:00
Jason Travis Smith
7ae702fd5c Finished the Vector definition.
This complete what is needed for the definition of Vector2, Vector3, and Vector4.

This required a trigonometry section, fleshing out the rest of the Number, ToNumber,
and FromNumber section, correctly defining all the available function for the Real
trait, and defining several constants.
2015-10-09 13:02:54 -04:00
Jason Travis Smith
e410e69e2f Fixed up some tests and wrote some documentation.
Also, .swp files are now ignored.
2015-10-04 23:33:37 -04:00
Jason Travis Smith
0160780bd1 Created a new math library.
This library will e the math library of the magic game engine.

Currently, it defines basic numerical types that can be used in generic programming
and a set of generic Vector structures.

Tests can be added to the "tests" crate.
2015-10-04 02:59:26 -04:00