Tolerance-公差,可用来判断两点是否相等,,两向量是否相等、平行、垂直等
来源:互联网 发布:sql建立数据库用户 编辑:程序博客网 时间:2024/04/29 20:51
[StructLayout(LayoutKind.Sequential), Wrapper("AcGeTol")]
public struct Tolerance {
}
Description
This .NET class wraps AcGeTol ObjectARX class.
This is an instantiable class that is by default initialized to the default tolerances. Subsequently, the tolerances within it can be customized to suit a specific need. For example, an instance of this class may be specialized for use during surface intersection.
Class Tolerance keeps two properties, EqualPoint and EqualVector, which are used in evaluation according to the following rules:
1. Two points, p1 and p2, are equal if
(p1 - p2).length() <= equalPoint
2. Two vectors, v1 and v2, are equal if
(v1 - v2).length() <= equalVector
3. Two vectors, v1 and v2, are parallel if
(v1/v1.length() - v2/v2.length() ).length() < equalVector
OR
(v1/v1.length() + v2/v2.length() ).length() < equalVector
4. Two vectors, v1 and v2, are perpendicular if
abs((v1.dotProduct(v2))/(v1.length()*v2.length())) <= equalVector
5. Two lines or rays are parallel (perpendicular) if their directional vectors are parallel (perpendicular)
Notes
Two lines are equal as point sets if, for any point on any line, there is a point on the other line within the EqualPoint tolerance from the first point. This implies that two lines with common point and parallel directional vectors are equal as point sets in the portion of the modeling space of DIAM, if only the tolerance EqualVector is set tighter than EqualPoint.
- Tolerance-公差,可用来判断两点是否相等,,两向量是否相等、平行、垂直等
- 判断两棵二叉树是否相等
- 判断两棵二叉树是否相等
- 判断两棵二叉树是否相等
- matlab中判断两矩阵是否相等
- (顺序表)判断两集合是否相等
- 判断两棵二叉树是否相等
- 判断两棵二叉树是否相等
- 判断两棵二叉树是否相等
- 关于两Integer是否相等的判断
- 判断两颗二叉树是否相等
- 判断两立方体体积是否相等
- 判断两颗二叉排序树是否相等
- 判断两棵树是否相等
- 判断两棵树是否相等
- 服务器端判断是否相等
- 判断两棵树是否相等
- 判断两棵树是否相等
- CentOS7 Tomcat 启动过程很慢,JVM上的随机数与熵池策略
- struts2 访问Web元素的4种方法
- Mybatis基础知识
- linux 安装rpm包时遇到error:Failed dependencies解法方法
- 设计模式之工厂模式总结
- Tolerance-公差,可用来判断两点是否相等,,两向量是否相等、平行、垂直等
- Elasticsearch安装中文分词插件ik(ES 2.3.3 & IK 1.9.3)
- react native 视图
- 面试题目
- 03_源码编译
- 用javascript正则表达式判断一个串是否存在特殊字符
- Linux下vi命令大全以及vi语法高亮
- Web自动化框架LazyUI使用手册(5)--模板工程:LazyUI-template详解
- GET POST方法长度限制