C# Class SpeedSketch.CGMathExtensions

Exibir arquivo Open project: xamarin/monotouch-samples

Public Methods

Method Description
Add ( this left, CGVector right ) : CGPoint
Apply ( this vector, CGAffineTransform transform ) : CGVector
Distance ( CGPoint point1, CGPoint point2 ) : nfloat
GetCenter ( this rect ) : CGPoint
Quadrance ( this vector ) : nfloat
Sub ( this left, CGVector right ) : CGPoint
Vector ( CGPoint start, CGPoint end ) : CGVector

Method Details

Add() public static method

public static Add ( this left, CGVector right ) : CGPoint
left this
right CGVector
return CGPoint

Apply() public static method

public static Apply ( this vector, CGAffineTransform transform ) : CGVector
vector this
transform CGAffineTransform
return CGVector

Distance() public static method

public static Distance ( CGPoint point1, CGPoint point2 ) : nfloat
point1 CGPoint
point2 CGPoint
return nfloat

GetCenter() public static method

public static GetCenter ( this rect ) : CGPoint
rect this
return CGPoint

Quadrance() public static method

public static Quadrance ( this vector ) : nfloat
vector this
return nfloat

Sub() public static method

public static Sub ( this left, CGVector right ) : CGPoint
left this
right CGVector
return CGPoint

Vector() public static method

public static Vector ( CGPoint start, CGPoint end ) : CGVector
start CGPoint
end CGPoint
return CGVector