C# Class SilverlightMappingToolBasic.UI.ShapeExtensionMethods

Mostra file Open project: chris-tomich/Glyma

Public Methods

Method Description
Add ( this firstVertex, Point secondVertex ) : Point
Distance ( this origin, Point destination ) : double
GetMidway ( this firstVertex, Point secondVertex ) : Point
IsInBoundaryInclusively ( this test, Point lowerX, Point upperX, Point lowerY, Point upperY ) : bool
Subtract ( this firstVertex, Point secondVertex ) : Point

Method Details

Add() public static method

public static Add ( this firstVertex, Point secondVertex ) : Point
firstVertex this
secondVertex Point
return Point

Distance() public static method

public static Distance ( this origin, Point destination ) : double
origin this
destination Point
return double

GetMidway() public static method

public static GetMidway ( this firstVertex, Point secondVertex ) : Point
firstVertex this
secondVertex Point
return Point

IsInBoundaryInclusively() public static method

public static IsInBoundaryInclusively ( this test, Point lowerX, Point upperX, Point lowerY, Point upperY ) : bool
test this
lowerX Point
upperX Point
lowerY Point
upperY Point
return bool

Subtract() public static method

public static Subtract ( this firstVertex, Point secondVertex ) : Point
firstVertex this
secondVertex Point
return Point