MatrixPerspective function
Implementation
Matrix4 MatrixPerspective(double fovy, double aspect, double near, double far) {
final top = near * math.tan(fovy / 2);
return MatrixFrustum(-top * aspect, top * aspect, -top, top, near, far);
}
Matrix4 MatrixPerspective(double fovy, double aspect, double near, double far) {
final top = near * math.tan(fovy / 2);
return MatrixFrustum(-top * aspect, top * aspect, -top, top, near, far);
}