C# 클래스 GeometryClassLibrary.Shift

파일 보기 프로젝트 열기: ParagonTruss/GeometryClassLibrary 1 사용 예제들

공개 메소드들

메소드 설명
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