C# Class GeometryClassLibrary.Shift

Afficher le fichier Open project: ParagonTruss/GeometryClassLibrary Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
Shift ( ) : System

Null Constructor

Private Methods

Méthode Description
Compose ( Shift shift ) : Shift
Compose ( Shift second, Shift first ) : Shift
RotationsAreEquivalent ( Shift shift1, Shift shift2 ) : bool

Method Details

ComposeLeftToRight() public static méthode

Left to right composition.
public static ComposeLeftToRight ( Shift first, Shift second ) : Shift
first Shift
second Shift
Résultat Shift

ComposeRightToLeft() public static méthode

Right to left composition.
public static ComposeRightToLeft ( Shift second, Shift first ) : Shift
second Shift
first Shift
Résultat Shift

Equals() public méthode

does the same thing as == if the passed in object is a d
public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

This override determines how this object is inserted into hashtables.
public GetHashCode ( ) : int
Résultat int

Inverse() public méthode

Returns the inverse shift. That is, it performs the opposite motion of this shift.
public Inverse ( ) : Shift
Résultat Shift

Shift() protected méthode

Null Constructor
protected Shift ( ) : System
Résultat System

Shift() public méthode

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
Résultat System

Shift() public méthode

public Shift ( Matrix matrix ) : System
matrix Matrix
Résultat System

Shift() public méthode

Creates a Shift with the given displacement and no rotations
public Shift ( Point displacement ) : System
displacement Point
Résultat System

Shift() public méthode

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
Résultat System

Shift() public méthode

Creates a copy of the given Shift
public Shift ( Shift toCopy ) : System
toCopy Shift
Résultat System

Shift() public méthode

public Shift ( Vector vector ) : System
vector Vector
Résultat System

operator() public static méthode

Compose two shift operations. Note this is not generally commutative. The shift on the left is applied first.
public static operator ( ) : Shift
Résultat Shift

operator() public static méthode

Not a perfect equality operator, is only accurate up to Constants.AcceptedEqualityDeviationConstant
public static operator ( ) : bool
Résultat bool