File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -49,3 +49,9 @@ extension Point where Value == UInt {
4949extension  Point :  Equatable  where  Value:  Equatable  {  } 
5050extension  Point :  Hashable  where  Value:  Hashable  {  } 
5151extension  Point :  Codable  where  Value:  Codable  {  } 
52+ 
53+ extension  Vec2f  { 
54+     public  init ( _ point:  Point < Float > )  { 
55+         self . init ( x:  point. x,  y:  point. y) 
56+     } 
57+ } 
Original file line number Diff line number Diff line change @@ -38,3 +38,9 @@ extension Size where Value == UInt {
3838extension  Size :  Equatable  where  Value:  Equatable  {  } 
3939extension  Size :  Hashable  where  Value:  Hashable  {  } 
4040extension  Size :  Codable  where  Value:  Codable  {  } 
41+ 
42+ extension  Vec2f  { 
43+     public  init ( _ size:  Size < Float > )  { 
44+         self . init ( x:  size. width,  y:  size. height) 
45+     } 
46+ } 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments