mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			560 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			560 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| 
 | |
| #pragma once
 | |
| 
 | |
| namespace msdfgen {
 | |
| 
 | |
| /// Represents a signed distance and alignment, which together can be compared to uniquely determine the closest edge segment.
 | |
| class SignedDistance {
 | |
| 
 | |
| public:
 | |
|     double distance;
 | |
|     double dot;
 | |
| 
 | |
|     SignedDistance();
 | |
|     SignedDistance(double dist, double d);
 | |
| 
 | |
|     friend bool operator<(SignedDistance a, SignedDistance b);
 | |
|     friend bool operator>(SignedDistance a, SignedDistance b);
 | |
|     friend bool operator<=(SignedDistance a, SignedDistance b);
 | |
|     friend bool operator>=(SignedDistance a, SignedDistance b);
 | |
| 
 | |
| };
 | |
| 
 | |
| }
 | 
