コード例 #1
0
        // Le Z est le plus grand entre les deux Z.
        public Point3D RandomPoint()
        {
            Rectangle2D rect = new Rectangle2D(Start, End);

            rect = Map.NormalizeR2D(rect);
            return(new Point3D(Start.X + Utility.Random(rect.Width), Start.Y + Utility.Random(rect.Height), Math.Max(Start.Z, End.Z)));
        }