C# 클래스 Eto.Drawing.Matrix

Methods to create and manage an IMatrix
파일 보기 프로젝트 열기: picoe/Eto

공개 메소드들

메소드 설명
Append ( this matrix ) : void

Append the specified matrices to the matrix

Create ( ) : IMatrix

Creates a new identity matrix

Create ( float elements ) : IMatrix

Creates a new matrix with the specified elements

Create ( float xx, float yx, float xy, float yy, float x0, float y0 ) : IMatrix

Creates a new matrix with the specified components

FromRotation ( float angle ) : IMatrix

Creates a new rotation matrix

FromRotationAt ( float angle, Eto.Drawing.PointF center ) : IMatrix

Creates a new rotation matrix around a center point with the specified angle

FromRotationAt ( float angle, float centerX, float centerY ) : IMatrix

Creates a new rotation matrix around a (centerX, centerY) point with the specified angle

FromScale ( Eto.Drawing.SizeF scale ) : IMatrix

Creates a new matrix with the specified scale

FromScale ( float scaleX, float scaleY ) : IMatrix

Creates a new matrix with the specified scale factor

FromScaleAt ( Eto.Drawing.SizeF scale, Eto.Drawing.PointF center ) : IMatrix

Creates a new matrix with a scale at the specified center point

FromScaleAt ( float scaleX, float scaleY, float centerX, float centerY ) : IMatrix

Creates a new matrix with a scale at the specified point

FromSkew ( float skewX, float skewY ) : IMatrix

Creates a new matrix with a skew

FromTranslation ( Eto.Drawing.PointF offset ) : IMatrix

Creates a new matrix with a translation

FromTranslation ( Eto.Drawing.SizeF offset ) : IMatrix

Creates a new matrix with a translation

FromTranslation ( float distanceX, float distanceY ) : IMatrix

Creates a new matrix with a translation

GetScale ( this matrix ) : Eto.Drawing.PointF

Returns the scale coordinates Xx and Yy of the matrix as a PointF.

Inverse ( this matrix ) : IMatrix

Creates an inverted copy of the specified matrix.

Multiply ( IMatrix matrix ) : IMatrix

Multiply the specified matrix and matrices.

Prepend ( this matrix ) : void

Prepends the specified matrices to the matrix

RotateAt ( this matrix, float angle, Eto.Drawing.PointF center ) : void

Prepend a rotation around the specified point to the matrix

Scale ( this matrix, Eto.Drawing.SizeF scale ) : void

Prepend a scale to the matrix from the origin (0, 0)

Scale ( this matrix, float scale ) : void

Prepend a scale to the matrix from the origin (0, 0)

ScaleAt ( this matrix, Eto.Drawing.SizeF scale, Eto.Drawing.PointF center ) : void

Prepend a scale to the matrix from the specified point

ScaleAt ( this matrix, float scale, Eto.Drawing.PointF center ) : void

Prepend a scale to the matrix from the specified point

ScaleAt ( this matrix, float scale, float centerX, float centerY ) : void

Prepend a scale to the matrix from the specified point

TransformRectangle ( this matrix, Eto.Drawing.RectangleF rect ) : Eto.Drawing.RectangleF

Transforms the rectangle with the current matrix.

This returns a rectangle that encompasses the specified rect after it is translated. When rotating, this means that the new rectangle may be larger in size to encompass the translated rectangle.

TransformSize ( this matrix, Eto.Drawing.SizeF size ) : Eto.Drawing.SizeF

Transforms the size with the current matrix.

This will get the transformed size

Translate ( this matrix, Eto.Drawing.PointF offset ) : void

Prepend a translation to the matrix

Translate ( this matrix, Eto.Drawing.SizeF offset ) : void

Prepend a translation to the matrix

메소드 상세

Append() 공개 정적인 메소드

Append the specified matrices to the matrix
public static Append ( this matrix ) : void
matrix this Matrix to append to
리턴 void

Create() 공개 정적인 메소드

Creates a new identity matrix
public static Create ( ) : IMatrix
리턴 IMatrix

Create() 공개 정적인 메소드

Creates a new matrix with the specified elements
public static Create ( float elements ) : IMatrix
elements float Elements of the matrix (six components)
리턴 IMatrix

Create() 공개 정적인 메소드

Creates a new matrix with the specified components
public static Create ( float xx, float yx, float xy, float yy, float x0, float y0 ) : IMatrix
xx float Xx component of the matrix
yx float Yx component of the matrix
xy float Xy component of the matrix
yy float Yy component of the matrix
x0 float X0 component of the matrix
y0 float Y0 component of the matrix
리턴 IMatrix

FromRotation() 공개 정적인 메소드

Creates a new rotation matrix
public static FromRotation ( float angle ) : IMatrix
angle float Angle in degrees to rotate. A positive value indicates a clockwise rotation, whereas a negative value will rotate counter clockwise
리턴 IMatrix

FromRotationAt() 공개 정적인 메소드

Creates a new rotation matrix around a center point with the specified angle
public static FromRotationAt ( float angle, Eto.Drawing.PointF center ) : IMatrix
angle float Angle in degrees to rotate. A positive value indicates a clockwise rotation, whereas a negative value will rotate counter clockwise
center Eto.Drawing.PointF the point to rotate around
리턴 IMatrix

FromRotationAt() 공개 정적인 메소드

Creates a new rotation matrix around a (centerX, centerY) point with the specified angle
public static FromRotationAt ( float angle, float centerX, float centerY ) : IMatrix
angle float Angle in degrees to rotate. A positive value indicates a clockwise rotation, whereas a negative value will rotate counter clockwise
centerX float X co-ordinate of the point to rotate around
centerY float Y co-ordinate of the point to rotate around
리턴 IMatrix

FromScale() 공개 정적인 메소드

Creates a new matrix with the specified scale
public static FromScale ( Eto.Drawing.SizeF scale ) : IMatrix
scale Eto.Drawing.SizeF Scale size for the X and Y coordinates
리턴 IMatrix

FromScale() 공개 정적인 메소드

Creates a new matrix with the specified scale factor
public static FromScale ( float scaleX, float scaleY ) : IMatrix
scaleX float The amount to multiply coordinates along the x axis
scaleY float The amount to multiply coordinates along the y axis
리턴 IMatrix

FromScaleAt() 공개 정적인 메소드

Creates a new matrix with a scale at the specified center point
public static FromScaleAt ( Eto.Drawing.SizeF scale, Eto.Drawing.PointF center ) : IMatrix
scale Eto.Drawing.SizeF The amount to multiply coordinates by
center Eto.Drawing.PointF Point to scale from
리턴 IMatrix

FromScaleAt() 공개 정적인 메소드

Creates a new matrix with a scale at the specified point
public static FromScaleAt ( float scaleX, float scaleY, float centerX, float centerY ) : IMatrix
scaleX float The amount to multiply coordinates along the x axis
scaleY float The amount to multiply coordinates along the y axis
centerX float X co-ordinate of the point to scale from
centerY float Y co-ordinate of the point to scale from
리턴 IMatrix

FromSkew() 공개 정적인 메소드

Creates a new matrix with a skew
public static FromSkew ( float skewX, float skewY ) : IMatrix
skewX float Amount to skew along the X axis, 1.0 does not skew
skewY float Amount to skew along the Y axis, 1.0 does not skew
리턴 IMatrix

FromTranslation() 공개 정적인 메소드

Creates a new matrix with a translation
public static FromTranslation ( Eto.Drawing.PointF offset ) : IMatrix
offset Eto.Drawing.PointF Offset to translate by
리턴 IMatrix

FromTranslation() 공개 정적인 메소드

Creates a new matrix with a translation
public static FromTranslation ( Eto.Drawing.SizeF offset ) : IMatrix
offset Eto.Drawing.SizeF Offset to translate by
리턴 IMatrix

FromTranslation() 공개 정적인 메소드

Creates a new matrix with a translation
public static FromTranslation ( float distanceX, float distanceY ) : IMatrix
distanceX float Distance to translate along the x axis
distanceY float Distance to translate along the y axis
리턴 IMatrix

GetScale() 공개 정적인 메소드

Returns the scale coordinates Xx and Yy of the matrix as a PointF.
public static GetScale ( this matrix ) : Eto.Drawing.PointF
matrix this
리턴 Eto.Drawing.PointF

Inverse() 공개 정적인 메소드

Creates an inverted copy of the specified matrix.
public static Inverse ( this matrix ) : IMatrix
matrix this Matrix to invert.
리턴 IMatrix

Multiply() 공개 정적인 메소드

Multiply the specified matrix and matrices.
public static Multiply ( IMatrix matrix ) : IMatrix
matrix IMatrix Matrix to multiply with
리턴 IMatrix

Prepend() 공개 정적인 메소드

Prepends the specified matrices to the matrix
public static Prepend ( this matrix ) : void
matrix this Matrix to prepend to
리턴 void

RotateAt() 공개 정적인 메소드

Prepend a rotation around the specified point to the matrix
public static RotateAt ( this matrix, float angle, Eto.Drawing.PointF center ) : void
matrix this Matrix to rotate
angle float Angle in degrees to rotate. A positive value indicates a clockwise rotation, whereas a negative value will rotate counter clockwise
center Eto.Drawing.PointF Point to rotate around
리턴 void

Scale() 공개 정적인 메소드

Prepend a scale to the matrix from the origin (0, 0)
public static Scale ( this matrix, Eto.Drawing.SizeF scale ) : void
matrix this Matrix to scale
scale Eto.Drawing.SizeF The amount to multiply coordinates
리턴 void

Scale() 공개 정적인 메소드

Prepend a scale to the matrix from the origin (0, 0)
public static Scale ( this matrix, float scale ) : void
matrix this Matrix to scale
scale float The amount to multiply coordinates along both the x and y axis
리턴 void

ScaleAt() 공개 정적인 메소드

Prepend a scale to the matrix from the specified point
public static ScaleAt ( this matrix, Eto.Drawing.SizeF scale, Eto.Drawing.PointF center ) : void
matrix this Matrix to scale
scale Eto.Drawing.SizeF The amount to multiply coordinates
center Eto.Drawing.PointF Point to scale from
리턴 void

ScaleAt() 공개 정적인 메소드

Prepend a scale to the matrix from the specified point
public static ScaleAt ( this matrix, float scale, Eto.Drawing.PointF center ) : void
matrix this Matrix to scale
scale float The amount to multiply coordinates along both the x and y axis
center Eto.Drawing.PointF Point to scale from
리턴 void

ScaleAt() 공개 정적인 메소드

Prepend a scale to the matrix from the specified point
public static ScaleAt ( this matrix, float scale, float centerX, float centerY ) : void
matrix this Matrix to scale
scale float The amount to multiply coordinates along both the x and y axis
centerX float X co-ordinate of the point to scale from
centerY float Y co-ordinate of the point to scale from
리턴 void

TransformRectangle() 공개 정적인 메소드

Transforms the rectangle with the current matrix.
This returns a rectangle that encompasses the specified rect after it is translated. When rotating, this means that the new rectangle may be larger in size to encompass the translated rectangle.
public static TransformRectangle ( this matrix, Eto.Drawing.RectangleF rect ) : Eto.Drawing.RectangleF
matrix this Matrix to transform each point of the rectangle.
rect Eto.Drawing.RectangleF Rectangle to transform.
리턴 Eto.Drawing.RectangleF

TransformSize() 공개 정적인 메소드

Transforms the size with the current matrix.
This will get the transformed size
public static TransformSize ( this matrix, Eto.Drawing.SizeF size ) : Eto.Drawing.SizeF
matrix this
size Eto.Drawing.SizeF
리턴 Eto.Drawing.SizeF

Translate() 공개 정적인 메소드

Prepend a translation to the matrix
public static Translate ( this matrix, Eto.Drawing.PointF offset ) : void
matrix this Matrix to translate
offset Eto.Drawing.PointF The amount to offset
리턴 void

Translate() 공개 정적인 메소드

Prepend a translation to the matrix
public static Translate ( this matrix, Eto.Drawing.SizeF offset ) : void
matrix this Matrix to translate
offset Eto.Drawing.SizeF The amount to offset
리턴 void