C# Class GeometryClassLibrary.Shift

Mostrar archivo Open project: ParagonTruss/GeometryClassLibrary Class Usage Examples

Public Methods

Method 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

Protected Methods

Method Description
Shift ( ) : System

Null Constructor

Private Methods

Method Description
Compose ( Shift shift ) : Shift
Compose ( Shift second, Shift first ) : Shift
RotationsAreEquivalent ( Shift shift1, Shift shift2 ) : bool

Method Details

ComposeLeftToRight() public static method

Left to right composition.
public static ComposeLeftToRight ( Shift first, Shift second ) : Shift
first Shift
second Shift
return Shift

ComposeRightToLeft() public static method

Right to left composition.
public static ComposeRightToLeft ( Shift second, Shift first ) : Shift
second Shift
first Shift
return Shift

Equals() public method

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

GetHashCode() public method

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

Inverse() public method

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

Shift() protected method

Null Constructor
protected Shift ( ) : System
return System

Shift() public method

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
return System

Shift() public method

public Shift ( Matrix matrix ) : System
matrix Matrix
return System

Shift() public method

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

Shift() public method

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
return System

Shift() public method

Creates a copy of the given Shift
public Shift ( Shift toCopy ) : System
toCopy Shift
return System

Shift() public method

public Shift ( Vector vector ) : System
vector Vector
return System

operator() public static method

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

operator() public static method

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