**You are viewing an old version of this page. View the**Compare with Current | View Page History

**current version.**<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[

# Zend Framework: Zend_Math Component Proposal

Proposed Component Name | Zend_Math |
---|---|

Developer Notes | http://framework.zend.com/wiki/display/ZFDEV/Zend_Math |

Proposers | Walter Tamboer |

Zend Liaison | Dolf Schimmel (Freeaqingme) |

Revision | 2.0 - 02 Jun 2011: Finished the proposal code so that it can be reviewed. 1.0 - 29 May 2011: Initial Draft. (wiki revision: 6) |

# Table of Contents

## 1. Overview

Zend_Math is a component which contains math related functions and classes. The purpose of this component is to make life easier for people who are doing vector and matrix math for example.

## 2. References

- http://en.wikipedia.org/wiki/Mathematics
- http://en.wikipedia.org/wiki/Euclidean_vector
- http://en.wikipedia.org/wiki/Matrix_(mathematics)
- http://www.math.com

## 3. Component Requirements, Constraints, and Acceptance Criteria

- This component
**will**support helper methods such as "clamp" and "lerp". - This component
**will**support vector classes to do vector math. - This component
**will**support matrix classes to do matrix math. - This component
**will**support functionality to detect intersections.

## 4. Dependencies on Other Framework Components

- Zend_Exception
- SPL Iterator
- SPL Exceptions

## 5. Theory of Operation

This component can be used as is. It can be used to do calculations.

## 6. Milestones / Tasks

- Milestone 1: Setup the proposal and consider feedback.
- Milestone 2: Write and finish component source code.
- Milestone 3: Write unit tests
- Milestone 4: Write documentation

## 7. Class Index

- Zend_Math
- Zend_Math_BoundingBox
- Zend_Math_BoundingFrustum
- Zend_Math_BoundingSphere
- Zend_Math_BoundingVolume
- Zend_Math_Exception
- Zend_Math_Exception_DivideByZero
- Zend_Math_Interface
- Zend_Math_Matrix
- Zend_Math_Matrix_Matrix44
- Zend_Math_Plane
- Zend_Math_Point
- Zend_Math_Quaternion
- Zend_Math_Ray
- Zend_Math_Rectangle
- Zend_Math_Size
- Zend_Math_Vector
- Zend_Math_Vector_Vector2
- Zend_Math_Vector_Vector3
- Zend_Math_Vector_Vector4

## 8. Use Cases

UC-01 |
---|

UC-02 |
---|

## 9. Class Skeletons

The code for this proposal can be found at http://code.google.com/p/zend-math/source/browse/

]]></ac:plain-text-body></ac:macro>**Labels:**

None