C# 클래스 LitDev.LDMath

파일 보기 프로젝트 열기: litdev1/LitDev

공개 메소드들

메소드 설명
ArcCos ( Primitive cos ) : Primitive

ArcCos in degrees.

ArcSin ( Primitive sin ) : Primitive

ArcSin in degrees.

ArcTan ( Primitive tan ) : Primitive

ArcTan in degrees.

Base2Decimal ( Primitive number, Primitive Base ) : Primitive

Convert a base number to a decimal integer.

Convert2Cartesian ( Primitive x1, Primitive y1, Primitive dist, Primitive angle ) : Primitive

Calculate the coordinates of a point 2, from point 1 and the distance and angle to point 2.

Convert2Radial ( Primitive x1, Primitive y1, Primitive x2, Primitive y2 ) : Primitive

Calculate the distance and angle between two points.

Cos ( Primitive angle ) : Primitive

Cos of an angle in degrees.

Cosh ( Primitive angle ) : Primitive

Hyperbolic cosine.

Decimal2Base ( Primitive number, Primitive Base ) : Primitive

Convert a decimal integer to another base.

Evaluate ( Primitive expression ) : Primitive

Evaluate a string expression to a number or boolean (if possible). The JScript command 'eval' is used and may therefore allow more complex JScript manipulations (also see LDInline). The TextWindow should be visible prior to using this method if later use of the TextWindow is required.

Evaluate2 ( Primitive expression ) : Primitive

Evaluate a string expression to a number (if possible). An alternative to Evaluate that behaves nicely with the TextWindow.

Evaluate3 ( Primitive expression ) : Primitive

Evaluate a string expression to a boolean "True" or "False" (if possible). An alternative to Evaluate that behaves nicely with the TextWindow.

Exp ( Primitive value ) : Primitive

Exponential of a number e^x.

FixDecimal ( Primitive number, Primitive digits ) : Primitive

Round a number to a fixed number of decimal places. Additional training decimal 0s are added if required.

FixSigFig ( Primitive number, Primitive digits ) : Primitive

Round a number to a fixed number of significant figures.

Rotate ( Primitive x1, Primitive y1, Primitive x2, Primitive y2, Primitive angle ) : Primitive

Rotate point 2 clockwise about point 1.

Sin ( Primitive angle ) : Primitive

Sin of an angle in degrees.

Sinh ( Primitive angle ) : Primitive

Hyperbolic sine.

Tan ( Primitive angle ) : Primitive

Tan of an angle in degrees.

Tanh ( Primitive angle ) : Primitive

Hyperbolic tangent.

Truncate ( Primitive value ) : Primitive

Get the integral part of a number.

메소드 상세

ArcCos() 공개 정적인 메소드

ArcCos in degrees.
public static ArcCos ( Primitive cos ) : Primitive
cos Primitive /// The Cos of the angle. ///
리턴 Primitive

ArcSin() 공개 정적인 메소드

ArcSin in degrees.
public static ArcSin ( Primitive sin ) : Primitive
sin Primitive /// The Sin of the angle. ///
리턴 Primitive

ArcTan() 공개 정적인 메소드

ArcTan in degrees.
public static ArcTan ( Primitive tan ) : Primitive
tan Primitive /// The Tan of the angle. ///
리턴 Primitive

Base2Decimal() 공개 정적인 메소드

Convert a base number to a decimal integer.
public static Base2Decimal ( Primitive number, Primitive Base ) : Primitive
number Primitive The base number to convert (non negative).
Base Primitive The base to convert from (2 binary) (8 octal) (16 hex) or other bases up to 36.
리턴 Primitive

Convert2Cartesian() 공개 정적인 메소드

Calculate the coordinates of a point 2, from point 1 and the distance and angle to point 2.
public static Convert2Cartesian ( Primitive x1, Primitive y1, Primitive dist, Primitive angle ) : Primitive
x1 Primitive /// The X coordinate of point 1. ///
y1 Primitive /// The Y coordinate of point 1. ///
dist Primitive /// The distance to point 2. ///
angle Primitive /// The angle to point 2 in degrees. ///
리턴 Primitive

Convert2Radial() 공개 정적인 메소드

Calculate the distance and angle between two points.
public static Convert2Radial ( Primitive x1, Primitive y1, Primitive x2, Primitive y2 ) : Primitive
x1 Primitive /// The X coordinate of point 1. ///
y1 Primitive /// The Y coordinate of point 1. ///
x2 Primitive /// The X coordinate of point 2. ///
y2 Primitive /// The Y coordinate of point 2. ///
리턴 Primitive

Cos() 공개 정적인 메소드

Cos of an angle in degrees.
public static Cos ( Primitive angle ) : Primitive
angle Primitive /// The angle in degrees. ///
리턴 Primitive

Cosh() 공개 정적인 메소드

Hyperbolic cosine.
public static Cosh ( Primitive angle ) : Primitive
angle Primitive Angle in radians.
리턴 Primitive

Decimal2Base() 공개 정적인 메소드

Convert a decimal integer to another base.
public static Decimal2Base ( Primitive number, Primitive Base ) : Primitive
number Primitive The decimal integer to convert (non negative).
Base Primitive The base to convert to (2 binary) (8 octal) (16 hex) or other bases to 36.
리턴 Primitive

Evaluate() 공개 정적인 메소드

Evaluate a string expression to a number or boolean (if possible). The JScript command 'eval' is used and may therefore allow more complex JScript manipulations (also see LDInline). The TextWindow should be visible prior to using this method if later use of the TextWindow is required.
public static Evaluate ( Primitive expression ) : Primitive
expression Primitive The expression to evaluate, e.g. "(9/6) + 3" or "2.1 > 1.5".
리턴 Primitive

Evaluate2() 공개 정적인 메소드

Evaluate a string expression to a number (if possible). An alternative to Evaluate that behaves nicely with the TextWindow.
public static Evaluate2 ( Primitive expression ) : Primitive
expression Primitive The expression to evaluate, e.g. "1e6 + 6/4".
리턴 Primitive

Evaluate3() 공개 정적인 메소드

Evaluate a string expression to a boolean "True" or "False" (if possible). An alternative to Evaluate that behaves nicely with the TextWindow.
public static Evaluate3 ( Primitive expression ) : Primitive
expression Primitive The expression to evaluate to a boolean, e.g. "21.3 > 16".
리턴 Primitive

Exp() 공개 정적인 메소드

Exponential of a number e^x.
public static Exp ( Primitive value ) : Primitive
value Primitive The value to raise e to the power of.
리턴 Primitive

FixDecimal() 공개 정적인 메소드

Round a number to a fixed number of decimal places. Additional training decimal 0s are added if required.
public static FixDecimal ( Primitive number, Primitive digits ) : Primitive
number Primitive The number to change.
digits Primitive The number of decimal places.
리턴 Primitive

FixSigFig() 공개 정적인 메소드

Round a number to a fixed number of significant figures.
public static FixSigFig ( Primitive number, Primitive digits ) : Primitive
number Primitive The number to change.
digits Primitive The number of significant figures.
리턴 Primitive

Rotate() 공개 정적인 메소드

Rotate point 2 clockwise about point 1.
public static Rotate ( Primitive x1, Primitive y1, Primitive x2, Primitive y2, Primitive angle ) : Primitive
x1 Primitive /// The X coordinate of point 1. ///
y1 Primitive /// The Y coordinate of point 1. ///
x2 Primitive /// The X coordinate of point 2. ///
y2 Primitive /// The Y coordinate of point 2. ///
angle Primitive /// The angle to rotate point 2 around point 1 in degrees. ///
리턴 Primitive

Sin() 공개 정적인 메소드

Sin of an angle in degrees.
public static Sin ( Primitive angle ) : Primitive
angle Primitive /// The angle in degrees. ///
리턴 Primitive

Sinh() 공개 정적인 메소드

Hyperbolic sine.
public static Sinh ( Primitive angle ) : Primitive
angle Primitive Angle in radians.
리턴 Primitive

Tan() 공개 정적인 메소드

Tan of an angle in degrees.
public static Tan ( Primitive angle ) : Primitive
angle Primitive /// The angle in degrees. ///
리턴 Primitive

Tanh() 공개 정적인 메소드

Hyperbolic tangent.
public static Tanh ( Primitive angle ) : Primitive
angle Primitive Angle in radians.
리턴 Primitive

Truncate() 공개 정적인 메소드

Get the integral part of a number.
public static Truncate ( Primitive value ) : Primitive
value Primitive The number to truncate.
리턴 Primitive