C# Class Zeplin.Utilities.ExtensionMethods

Contains extension methods for C# types.
Exibir arquivo Open project: zumpiez/Zeplin

Public Methods

Method Description
Add ( this value, Point addend ) : Point

Adds addition to XNA points.

Why the HELL can't you add XNA points

ApproachTargetValue ( this value, float target, float rate ) : float

Interpolates between two values at a given rate.

Subtract ( this value, Point addend ) : Point

Method Details

Add() public static method

Adds addition to XNA points.
Why the HELL can't you add XNA points
public static Add ( this value, Point addend ) : Point
value this
addend Point
return Point

ApproachTargetValue() public static method

Interpolates between two values at a given rate.
public static ApproachTargetValue ( this value, float target, float rate ) : float
value this The value to be modified
target float Target value that will eventually be reached
rate float The amount to increment/decrement by.
return float

Subtract() public static method

public static Subtract ( this value, Point addend ) : Point
value this
addend Point
return Point