C# Class GeometryClassLibrary.Rotation

ファイルを表示 Open project: ParagonTruss/GeometryClassLibrary Class Usage Examples

Public Methods

Method Description
Equals ( object other ) : bool

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

GetHashCode ( ) : int
Inverse ( ) : Rotation

Returns the inverse rotation.

Rotation ( System.Angle rotationAngle, Line axisOfRotation = null ) : System
Rotation ( Line axisOfRotation, System.Angle rotationAngle ) : System

Creates a rotation about the input Axis and with the input Angle of 0 if the angle is omitted

Rotation ( Rotation toCopy ) : System

Creates a copy of the given rotation

RotationAboutOrigin ( Shift shift ) : Rotation

Returns the rotation component of the shift object.

RotationFromMatrix ( Matrix matrix ) : Rotation

This method runs no validation. So make sure this matrix represents an actual rotation.

operator ( ) : bool

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

Private Methods

Method Description
Rotation ( ) : System

Null Constructor

Rotation ( Line axis, System.Angle angle, Matrix matrix ) : System
Rotation ( Matrix matrix ) : System
_matrixOfRotationAboutOrigin ( ) : Matrix
_setAxisAndAngle ( ) : void
_setMatrix ( ) : void

Method Details

Equals() public method

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

GetHashCode() public method

public GetHashCode ( ) : int
return int

Inverse() public method

Returns the inverse rotation.
public Inverse ( ) : Rotation
return Rotation

Rotation() public method

public Rotation ( System.Angle rotationAngle, Line axisOfRotation = null ) : System
rotationAngle System.Angle
axisOfRotation Line
return System

Rotation() public method

Creates a rotation about the input Axis and with the input Angle of 0 if the angle is omitted
public Rotation ( Line axisOfRotation, System.Angle rotationAngle ) : System
axisOfRotation Line
rotationAngle System.Angle
return System

Rotation() public method

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

RotationAboutOrigin() public static method

Returns the rotation component of the shift object.
public static RotationAboutOrigin ( Shift shift ) : Rotation
shift Shift
return Rotation

RotationFromMatrix() public static method

This method runs no validation. So make sure this matrix represents an actual rotation.
public static RotationFromMatrix ( Matrix matrix ) : Rotation
matrix Matrix
return Rotation

operator() public static method

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