예제 #1
0
 public static __tpolygon__ Scaled(
     this __tpolygon__ polygon, __tvec__ center, __tvec__ scale)
 {
     return(polygon.Map(p => center + (p - center) * scale));
 }
예제 #2
0
 public static __tpolygon__ Transformed(
     this __tpolygon__ polygon, __tmat1__ m)
 {
     return(polygon.Map(p => m.TransformPos(p)));
 }
예제 #3
0
 public static __tpolygon__ Scaled(
     this __tpolygon__ polygon, __tvec__ scale)
 {
     return(polygon.Map(p => p * scale));
 }