Point
大约 1 分钟
基于 XYZ 类别封装的一些方法和算法
提示
以下文档仅提供了函数原型,如有疑惑请查阅使用文档
AreThreePointsCollinear
判断三个点是否共线
RevitSugar.DB.XYZExtension.AreThreePointsCollinear(Autodesk.Revit.DB.XYZ,Autodesk.Revit.DB.XYZ,Autodesk.Revit.DB.XYZ,System.Double)
IsVerticalWith
判断两个向量是否垂直
RevitSugar.DB.XYZExtension.IsVerticalWith(Autodesk.Revit.DB.XYZ,Autodesk.Revit.DB.XYZ,System.Double)
IsSameDirectionWith
判断两个向量是否同向
RevitSugar.DB.XYZExtension.IsSameDirectionWith(Autodesk.Revit.DB.XYZ,Autodesk.Revit.DB.XYZ,System.Double)
IsOppositeDirectionWith
判断两个向量是否为相反的方向
RevitSugar.DB.XYZExtension.IsOppositeDirectionWith(Autodesk.Revit.DB.XYZ,Autodesk.Revit.DB.XYZ,System.Double)
IsParallerWith
判断两个向量是否平行
RevitSugar.DB.XYZExtension.IsParallerWith(Autodesk.Revit.DB.XYZ,Autodesk.Revit.DB.XYZ,System.Double,System.Boolean)
IsAlmostEqualWith
判断两个向量是否相等
RevitSugar.DB.XYZExtension.IsAlmostEqualWith(Autodesk.Revit.DB.XYZ,Autodesk.Revit.DB.XYZ,System.Double,System.Boolean)
GetDirectionWith
获取两个点的方向
RevitSugar.DB.XYZExtension.GetDirectionWith(Autodesk.Revit.DB.XYZ,Autodesk.Revit.DB.XYZ)
Flat
将点拍平到某个垂直高度
RevitSugar.DB.XYZExtension.Flat(Autodesk.Revit.DB.XYZ,System.Double)
DeepClone
深拷贝一个 XYZ
RevitSugar.DB.XYZExtension.DeepClone(Autodesk.Revit.DB.XYZ)
CanProjectToFace
判断点能否投影到面
RevitSugar.DB.XYZExtension.CanProjectToFace(Autodesk.Revit.DB.XYZ,Autodesk.Revit.DB.Face,Autodesk.Revit.DB.IntersectionResults)
GetDistanceToPlane
获取点到 plane 之间的距离
RevitSugar.DB.XYZExtension.GetDistanceToPlane(Autodesk.Revit.DB.XYZ,Autodesk.Revit.DB.Plane)
ProjectToPlane
将点投影到平面
RevitSugar.DB.XYZExtension.ProjectToPlane(Autodesk.Revit.DB.XYZ,Autodesk.Revit.DB.Plane)
GetIntersertWithPlane
获取点在指定方向上与 plane 的交点
RevitSugar.DB.XYZExtension.GetIntersertWithPlane(Autodesk.Revit.DB.XYZ,Autodesk.Revit.DB.XYZ,Autodesk.Revit.DB.Plane)
GetProjectPoint
获取点在平面上的投影点
RevitSugar.DB.XYZExtension.GetProjectPoint(Autodesk.Revit.DB.Plane,Autodesk.Revit.DB.XYZ)
TryMakeLineWith
尝试构建线段
RevitSugar.DB.XYZExtension.TryMakeLineWith(Autodesk.Revit.DB.XYZ,Autodesk.Revit.DB.XYZ,Autodesk.Revit.DB.Line)
GetDistanceFromCurve
获取点到曲线的距离
RevitSugar.DB.XYZExtension.GetDistanceFromCurve(Autodesk.Revit.DB.XYZ,Autodesk.Revit.DB.Curve)
GetMinAngleWithVector
获取两个向量的最小夹角
RevitSugar.DB.XYZExtension.GetMinAngleWithVector(Autodesk.Revit.DB.XYZ,Autodesk.Revit.DB.XYZ)
Offset
将向量在指定方向上偏移一定的距离
RevitSugar.DB.XYZExtension.Offset(Autodesk.Revit.DB.XYZ,Autodesk.Revit.DB.XYZ,System.Double)
GetVerticalIntersection
获取垂直于直线的交点
RevitSugar.DB.XYZExtension.GetVerticalIntersection(Autodesk.Revit.DB.XYZ,Autodesk.Revit.DB.Line)
Rotate
将向量围绕一个方向旋转角度
RevitSugar.DB.XYZExtension.Rotate(Autodesk.Revit.DB.XYZ,Autodesk.Revit.DB.XYZ,System.Double)
GetLocationPoint
获取图元的放置点
RevitSugar.DB.XYZExtension.GetLocationPoint(Autodesk.Revit.DB.Element)