C# Класс Zeplin.Utilities.ExtensionMethods

Contains extension methods for C# types.
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

Add() публичный статический Метод

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
Результат Point

ApproachTargetValue() публичный статический Метод

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.
Результат float

Subtract() публичный статический Метод

public static Subtract ( this value, Point addend ) : Point
value this
addend Point
Результат Point