Searched refs:z_near (Results 1 – 1 of 1) sorted by relevance
40 Eigen::AffineMatrix<float, 4> GetProjectionMatrix(float z_near, in GetProjectionMatrix() argument42 float x_left = -std::tan(left_) * z_near; in GetProjectionMatrix()43 float x_right = std::tan(right_) * z_near; in GetProjectionMatrix()44 float y_bottom = -std::tan(bottom_) * z_near; in GetProjectionMatrix()45 float y_top = std::tan(top_) * z_near; in GetProjectionMatrix()48 if (x_left == x_right || y_bottom == y_top || z_near == z_far || in GetProjectionMatrix()49 z_near <= zero || z_far <= zero) { in GetProjectionMatrix()53 float x = (2 * z_near) / (x_right - x_left); in GetProjectionMatrix()54 float y = (2 * z_near) / (y_top - y_bottom); in GetProjectionMatrix()57 float c = (z_near + z_far) / (z_near - z_far); in GetProjectionMatrix()[all …]