C# 클래스 Revit.SDK.Samples.CreateBeamSystem.CS.Line2D

represent a geometry segment line
파일 보기 프로젝트 열기: AMEE/revit 1 사용 예제들

공개 메소드들

메소드 설명
Clone ( ) : Line2D

creates an instance of the GeometryLine class that is identical to the current GeometryLine

FindIntersection ( Line2D line0, Line2D line1 ) : int

find the number of intersection points for two segments

FindIntersection ( Line2D line0, Line2D line1, PointF &intersectPnt ) : int

find the intersection points of two segments

GetIntervalPoint ( float rate ) : PointF

get an interval point on the line of the segment

Line2D ( ) : System

constructor default StartPoint = (0.0, 0.0), EndPoint = (1.0, 0.0)

Line2D ( PointF startPnt, PointF endPnt ) : System

constructor

Scale ( float rate ) : void

scale the segment according to the center of the segment

Shift ( float distance ) : void

parallelly shift the line

비공개 메소드들

메소드 설명
CalculateBoundingBox ( ) : void

calculate BoundingBox according to StartPoint and EndPoint

CalculateDirection ( ) : void

calculate Direction by StartPoint and EndPoint

CalculateEndPoint ( ) : void

calculate EndPoint by StartPoint, Length and Direction

CalculateLength ( ) : void

calculate length by StartPoint and EndPoint

CalculateStartPoint ( ) : void

calculate StartPoint by EndPoint, Length and Direction

메소드 상세

Clone() 공개 메소드

creates an instance of the GeometryLine class that is identical to the current GeometryLine
public Clone ( ) : Line2D
리턴 Line2D

FindIntersection() 공개 정적인 메소드

find the number of intersection points for two segments
public static FindIntersection ( Line2D line0, Line2D line1 ) : int
line0 Line2D first line
line1 Line2D second line
리턴 int

FindIntersection() 공개 정적인 메소드

find the intersection points of two segments
public static FindIntersection ( Line2D line0, Line2D line1, PointF &intersectPnt ) : int
line0 Line2D first line
line1 Line2D second line
intersectPnt System.Drawing.PointF 0, 1 or 2 intersection points
리턴 int

GetIntervalPoint() 공개 메소드

get an interval point on the line of the segment
public GetIntervalPoint ( float rate ) : PointF
rate float rate of length from interval to StartPoint /// to length from EndPoint to interval
리턴 System.Drawing.PointF

Line2D() 공개 메소드

constructor default StartPoint = (0.0, 0.0), EndPoint = (1.0, 0.0)
public Line2D ( ) : System
리턴 System

Line2D() 공개 메소드

constructor
public Line2D ( PointF startPnt, PointF endPnt ) : System
startPnt System.Drawing.PointF StartPoint
endPnt System.Drawing.PointF EndPoint
리턴 System

Scale() 공개 메소드

scale the segment according to the center of the segment
public Scale ( float rate ) : void
rate float rate to scale
리턴 void

Shift() 공개 메소드

parallelly shift the line
public Shift ( float distance ) : void
distance float distance
리턴 void