CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
可用分押宝游戏火热进行中... 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  Java >  J2SE / 基础类

请大家翻译这段话

楼主raulhhf(枫情傲月)2003-12-01 18:33:50 在 Java / J2SE / 基础类 提问

WIND_EVEN_ODD  
  public   static   final   int   WIND_EVEN_ODDThe   winding   rule   constant   for   specifying   an   even-odd   rule   for   determining   the   interior   of   a   path.   The   even-odd   rule   specifies   that   a   point   lies   inside   the   path   if   a   ray   drawn   in   any   direction   from   that   point   to   infinity   is   crossed   by   path   segments   an   odd   number   of   times. 问题点数:80、回复次数:8Top

1 楼kinzey34(无声之舞)回复于 2003-12-03 17:58:18 得分 0

英文高手都到哪里去了?顶Top

2 楼Shrewdcat(丧邦&灵猫&潇)回复于 2003-12-03 18:21:31 得分 0

The   winding   rule   constant   for   specifying   an   even-odd   rule   for   determining   the   interior   of   a   path.  
          WIND_EVEN_ODD   是一个规则迭代常量,专门用来决定一个路径内部的古怪行为的一个规则。Top

3 楼Shrewdcat(丧邦&灵猫&潇)回复于 2003-12-03 18:22:39 得分 0

好象没有结合语境,翻译的有点生硬。Top

4 楼zhang21cnboy(事了抚衣去,不留身与名)回复于 2003-12-03 18:25:32 得分 20

我翻译一下了。这好像是一个拓扑算法的。主要是描述判断一个点是否在一个面内的方式,也就是奇数规则。  
  根据我的理解就是这样的:  
  奇数规则,就是从一点,在任意方向画直线,而这条直线和多边形的所有的边的交点数之和如果是奇数,就说明该点在这个面内,如果是偶数,就不再这个面内。  
   
  Top

5 楼zhang21cnboy(事了抚衣去,不留身与名)回复于 2003-12-03 18:26:37 得分 0

呵呵,上面的path,应该理解为面,如果理解为路径,可能不够恰当。Top

6 楼rubyz(左思右想)回复于 2003-12-03 19:09:27 得分 60

这里path是线的概念,可以是直线、二维曲线、三维曲线。  
  The   even-odd   rule   specifies   that   a   point   lies   inside   the   path   if   a   ray   drawn   in   any   direction   from   that   point   to   infinity   is   crossed   by   path   segments   an   odd   number   of   times.  
  大概意思是:  
  奇偶规则是指有一条曲线和一个点,如果从这个点出发的任意方向的无限长射线中,有一条射线被这条曲线分割奇数次,我们就认为这个点是在这条曲线内部。Top

7 楼rubyz(左思右想)回复于 2003-12-03 19:10:54 得分 0

不知道是不是出自这里java.awt.geom.GeneralPath  
   
  public   final   class   GeneralPath  
  extends   Object  
  implements   Shape,   Cloneable  
  The   GeneralPath   class   represents   a   geometric   path   constructed   from   straight   lines,   and   quadratic   and   cubic   (Bézier)   curves.   It   can   contain   multiple   subpaths.    
   
  The   winding   rule   specifies   how   the   interior   of   a   path   is   determined.   There   are   two   types   of   winding   rules:   EVEN_ODD   and   NON_ZERO.    
   
  An   EVEN_ODD   winding   rule   means   that   enclosed   regions   of   the   path   alternate   between   interior   and   exterior   areas   as   traversed   from   the   outside   of   the   path   towards   a   point   inside   the   region.    
   
  A   NON_ZERO   winding   rule   means   that   if   a   ray   is   drawn   in   any   direction   from   a   given   point   to   infinity   and   the   places   where   the   path   intersects   the   ray   are   examined,   the   point   is   inside   of   the   path   if   and   only   if   the   number   of   times   that   the   path   crosses   the   ray   from   left   to   right   does   not   equal   the   number   of   times   that   the   path   crosses   the   ray   from   right   to   left.    
   
   
   
  --------------------------------------------------------------------------------  
   
  Field   Summary    
  static   int   WIND_EVEN_ODD    
                      An   even-odd   winding   rule   for   determining   the   interior   of   a   path.    
  static   int   WIND_NON_ZERO    
                      A   non-zero   winding   rule   for   determining   the   interior   of   a   path.    
   
  Top

8 楼raulhhf(枫情傲月)回复于 2003-12-03 23:36:02 得分 0

zhang21cnboy(事了抚衣去,不留身与名)   的解释我觉得:我太不清楚,画了几个图好像都不对,也许是我理解错误;  
   
    rubyz(左思右想)   的解释我觉得解释的比较清楚,也画得出来  
  所以我这样给分Top

相关问题

  • 请翻译一段话。
  • 翻译一段话
  • 这段话怎么翻译
  • 请英语高手帮我翻译一下这段话,谢谢!
  • 请英语高手帮我翻译一下这段话
  • 看不懂这段话,请前辈翻译一下
  • 高手帮忙翻译翻译:Additional Information 这段话??
  • 谁帮我翻译一下这段话
  • 请问这句话怎么翻译?
  • 请大家帮翻译这句话

关键词

  • odd
  • winding
  • 奇数
  • rule
  • ray
  • interior
  • 曲线
  • 规则
  • path
  • 直线

得分解答快速导航

  • 帖主:raulhhf
  • zhang21cnboy
  • rubyz

相关链接

  • CSDN Java频道
  • Java类图书
  • Java类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo