| 
									
										
										
										
											2023-02-19 16:50:29 +00:00
										 |  |  | export module coral.math; | 
					
						
							| 
									
										
										
										
											2023-02-18 19:40:12 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-02-19 16:50:29 +00:00
										 |  |  | import coral; | 
					
						
							| 
									
										
										
										
											2023-02-18 19:40:12 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-02-19 16:50:29 +00:00
										 |  |  | export namespace coral { | 
					
						
							| 
									
										
										
										
											2023-02-18 19:40:12 +00:00
										 |  |  | 	/**
 | 
					
						
							|  |  |  | 	 * Two-component vector type backed by 32-bit floating point values. | 
					
						
							|  |  |  | 	 */ | 
					
						
							|  |  |  | 	struct vector2 { | 
					
						
							|  |  |  | 		/**
 | 
					
						
							|  |  |  | 		 * "X" axis spatial component. | 
					
						
							|  |  |  | 		 */ | 
					
						
							|  |  |  | 		f32 x; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		/**
 | 
					
						
							|  |  |  | 		 * "Y" axis spatial component. | 
					
						
							|  |  |  | 		 */ | 
					
						
							|  |  |  | 		f32 y; | 
					
						
							|  |  |  | 	}; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	/**
 | 
					
						
							|  |  |  | 	 * Three-component vector type backed by 32-bit floating point values. | 
					
						
							|  |  |  | 	 */ | 
					
						
							|  |  |  | 	struct vector3 { | 
					
						
							|  |  |  | 		/**
 | 
					
						
							|  |  |  | 		 * "X" axis spatial component. | 
					
						
							|  |  |  | 		 */ | 
					
						
							|  |  |  | 		f32 x; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		/**
 | 
					
						
							|  |  |  | 		 * "Y" axis spatial component. | 
					
						
							|  |  |  | 		 */ | 
					
						
							|  |  |  | 		f32 y; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		/**
 | 
					
						
							|  |  |  | 		 * "Z" axis spatial component. | 
					
						
							|  |  |  | 		 */ | 
					
						
							|  |  |  | 		f32 z; | 
					
						
							|  |  |  | 	}; | 
					
						
							|  |  |  | } |