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

utility class contains some methods deal with some general arithmetic
파일 보기 프로젝트 열기: AMEE/revit

공개 메소드들

메소드 설명
Add ( PointF f1, PointF f2 ) : PointF

add 2 vector

CompareDouble ( double d1, double d2 ) : bool

compare whether 2 double is equal using internal precision

Dot ( PointF pnt1, PointF pnt2 ) : float

dot multiply two vector

FindIntersection ( float u0, float u1, float v0, float v1, float &w ) : int

find and calculate the intersection of two interval [u0, u1] and [v0, v1]

GetMax ( float f1, float f2 ) : float

get the maximum value of 2 float

GetMin ( float f1, float f2 ) : float

get the minimum value of 2 float

Multiply ( float f, PointF pnt ) : PointF

multiply a float with a vector

Subtract ( PointF f1, PointF f2 ) : PointF

subtract 2 vector

비공개 메소드들

메소드 설명
MathUtil ( ) : System

forbidden default constructor

메소드 상세

Add() 공개 정적인 메소드

add 2 vector
public static Add ( PointF f1, PointF f2 ) : PointF
f1 System.Drawing.PointF first vector
f2 System.Drawing.PointF second vector
리턴 System.Drawing.PointF

CompareDouble() 공개 정적인 메소드

compare whether 2 double is equal using internal precision
public static CompareDouble ( double d1, double d2 ) : bool
d1 double first value
d2 double second value
리턴 bool

Dot() 공개 정적인 메소드

dot multiply two vector
public static Dot ( PointF pnt1, PointF pnt2 ) : float
pnt1 System.Drawing.PointF first vector
pnt2 System.Drawing.PointF second vector
리턴 float

FindIntersection() 공개 정적인 메소드

find and calculate the intersection of two interval [u0, u1] and [v0, v1]
public static FindIntersection ( float u0, float u1, float v0, float v1, float &w ) : int
u0 float first interval
u1 float first interval
v0 float second interval
v1 float second interval
w float 2 intersections
리턴 int

GetMax() 공개 정적인 메소드

get the maximum value of 2 float
public static GetMax ( float f1, float f2 ) : float
f1 float first float
f2 float second float
리턴 float

GetMin() 공개 정적인 메소드

get the minimum value of 2 float
public static GetMin ( float f1, float f2 ) : float
f1 float first float
f2 float second float
리턴 float

Multiply() 공개 정적인 메소드

multiply a float with a vector
public static Multiply ( float f, PointF pnt ) : PointF
f float float value
pnt System.Drawing.PointF vector
리턴 System.Drawing.PointF

Subtract() 공개 정적인 메소드

subtract 2 vector
public static Subtract ( PointF f1, PointF f2 ) : PointF
f1 System.Drawing.PointF first vector
f2 System.Drawing.PointF second vector
리턴 System.Drawing.PointF