コード例 #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="point"></param>
 /// <returns></returns>
 public Vec3d Clamp(Vec3d point)
 {
     point.X = X.Clamp(point.X);
     point.Y = Y.Clamp(point.Y);
     point.Z = Z.Clamp(point.Z);
     return(point);
 }
コード例 #2
0
ファイル: Domain2d.cs プロジェクト: DharmanGersch/SpatialSlur
 /// <summary>
 ///
 /// </summary>
 /// <param name="point"></param>
 /// <returns></returns>
 public Vec2d Clamp(Vec2d point)
 {
     point.X = X.Clamp(point.X);
     point.Y = Y.Clamp(point.Y);
     return(point);
 }