C# 클래스 StdPaint.Triangle

Represents a set of three points.
파일 보기 프로젝트 열기: TheBerkin/StdPaint 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
A Point
B Point
C Point

공개 메소드들

메소드 설명
GetArea ( Point a, Point b, Point c ) : double

Returns the area of the triangle made from the specified points.

GetBounds ( ) : Rectangle

Returns a Rectangle that represents the bounding box of this Triangle.

Triangle ( Point a, Point b, Point c ) : System

Initializes a new instance of the Triangle struct with the supplied coordinates.

메소드 상세

GetArea() 공개 정적인 메소드

Returns the area of the triangle made from the specified points.
public static GetArea ( Point a, Point b, Point c ) : double
a Point The first point.
b Point The second point.
c Point The third point.
리턴 double

GetBounds() 공개 메소드

Returns a Rectangle that represents the bounding box of this Triangle.
public GetBounds ( ) : Rectangle
리턴 Rectangle

Triangle() 공개 메소드

Initializes a new instance of the Triangle struct with the supplied coordinates.
public Triangle ( Point a, Point b, Point c ) : System
a Point The first point.
b Point The second point.
c Point The third point.
리턴 System

프로퍼티 상세

A 공개적으로 프로퍼티

The first point in the triangle.
public Point A
리턴 Point

B 공개적으로 프로퍼티

The second point in the triangle.
public Point B
리턴 Point

C 공개적으로 프로퍼티

The third point in the triangle.
public Point C
리턴 Point