C# Класс GeometryClassLibrary.Shift

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ComposeLeftToRight ( Shift first, Shift second ) : Shift

Left to right composition.

ComposeRightToLeft ( Shift second, Shift first ) : Shift

Right to left composition.

Equals ( object obj ) : bool

does the same thing as == if the passed in object is a d

GetHashCode ( ) : int

This override determines how this object is inserted into hashtables.

Inverse ( ) : Shift

Returns the inverse shift. That is, it performs the opposite motion of this shift.

Shift ( List rotations, Point displacement = null ) : System

Creates a Shift with multiple Rotations and a displacment, or zero translation if it is omitted

Shift ( Matrix matrix ) : System
Shift ( Point displacement ) : System

Creates a Shift with the given displacement and no rotations

Shift ( Rotation rotation, Point displacement = null ) : System

Creates a Shift with the given rotation and translation, or zero translation if it is omitted

Shift ( Shift toCopy ) : System

Creates a copy of the given Shift

Shift ( Vector vector ) : System
operator ( ) : Shift

Compose two shift operations. Note this is not generally commutative. The shift on the left is applied first.

operator ( ) : bool

Not a perfect equality operator, is only accurate up to Constants.AcceptedEqualityDeviationConstant

Защищенные методы

Метод Описание
Shift ( ) : System

Null Constructor

Приватные методы

Метод Описание
Compose ( Shift shift ) : Shift
Compose ( Shift second, Shift first ) : Shift
RotationsAreEquivalent ( Shift shift1, Shift shift2 ) : bool

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

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

Left to right composition.
public static ComposeLeftToRight ( Shift first, Shift second ) : Shift
first Shift
second Shift
Результат Shift

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

Right to left composition.
public static ComposeRightToLeft ( Shift second, Shift first ) : Shift
second Shift
first Shift
Результат Shift

Equals() публичный Метод

does the same thing as == if the passed in object is a d
public Equals ( object obj ) : bool
obj object
Результат bool

GetHashCode() публичный Метод

This override determines how this object is inserted into hashtables.
public GetHashCode ( ) : int
Результат int

Inverse() публичный Метод

Returns the inverse shift. That is, it performs the opposite motion of this shift.
public Inverse ( ) : Shift
Результат Shift

Shift() защищенный Метод

Null Constructor
protected Shift ( ) : System
Результат System

Shift() публичный Метод

Creates a Shift with multiple Rotations and a displacment, or zero translation if it is omitted
public Shift ( List rotations, Point displacement = null ) : System
rotations List The rotations that make up and are represented by this shift
displacement Point The distance of displacement this shift represents in each direction
Результат System

Shift() публичный Метод

public Shift ( Matrix matrix ) : System
matrix Matrix
Результат System

Shift() публичный Метод

Creates a Shift with the given displacement and no rotations
public Shift ( Point displacement ) : System
displacement Point
Результат System

Shift() публичный Метод

Creates a Shift with the given rotation and translation, or zero translation if it is omitted
public Shift ( Rotation rotation, Point displacement = null ) : System
rotation Rotation
displacement Point
Результат System

Shift() публичный Метод

Creates a copy of the given Shift
public Shift ( Shift toCopy ) : System
toCopy Shift
Результат System

Shift() публичный Метод

public Shift ( Vector vector ) : System
vector Vector
Результат System

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

Compose two shift operations. Note this is not generally commutative. The shift on the left is applied first.
public static operator ( ) : Shift
Результат Shift

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

Not a perfect equality operator, is only accurate up to Constants.AcceptedEqualityDeviationConstant
public static operator ( ) : bool
Результат bool