initial commit
This commit is contained in:
		
							
								
								
									
										11
									
								
								lib/glm/gtx/projection.inl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								lib/glm/gtx/projection.inl
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| /// @ref gtx_projection | ||||
| /// @file glm/gtx/projection.inl | ||||
|  | ||||
| namespace glm | ||||
| { | ||||
| 	template <typename vecType> | ||||
| 	GLM_FUNC_QUALIFIER vecType proj(vecType const & x, vecType const & Normal) | ||||
| 	{ | ||||
| 		return glm::dot(x, Normal) / glm::dot(Normal, Normal) * Normal; | ||||
| 	} | ||||
| }//namespace glm | ||||
		Reference in New Issue
	
	Block a user
	 izenynn
					izenynn