C# Class csCommon.Types.Geometries.AdvancedGeometry.GeometryTransformers.GeometryExtension

Geometry helper extension methods
Mostra file Open project: TNOCS/csTouch

Public Methods

Method Description
Concat ( this pathGeometry, IEnumerable pathFigures ) : void

Concats path figures to a path geometry.

EndPoint ( this pathSegment ) : Point

Returns the end point of a path segment.

MiddlePoint ( this pathFigure ) : Point

Returns the middle point of a path figure.

MiddlePoint ( this pathSegment, System startPoint ) : Point

Returns the middle point of a path segment.

OrientationAtEnd ( this pathFigure ) : double

The orientation at the end of the path figure.

OrientationAtEnd ( this pathSegment, System startSegmentPoint ) : double

The orientation at the end of the path segment.

OrientationAtMiddle ( this pathFigure ) : double

The orientation at the middle of the path figure.

OrientationAtMiddle ( this pathSegment, System startPoint ) : double

The orientation at the middle of the path segment (very approximative implementation....).

OrientationAtStart ( this pathFigure ) : double

The orientation at the origin of the path figure.

OrientationAtStart ( this pathSegment, System startPoint ) : double

The orientation at the origin of the path segment.

Transform ( this pathGeometry, System.Windows.Media.TransformGroup transform ) : IEnumerable

Transforms the specified path geometry and returns the result (as enumeration of PathFigure).

Transform ( this pathFigure, System.Windows.Media.TransformGroup transform ) : System.Windows.Media.PathFigure

Transforms the specified path figure and returns the result.

Transform ( this pathSegment, System.Windows.Media.TransformGroup transform ) : System.Windows.Media.PathSegment

Transforms the specified path segment and returns the result.

Transform ( this point, Transform transform ) : Point

Transforms the specified point and returns the result.

Private Methods

Method Description
BezierSegmentPoint ( System.Windows.Media.BezierSegment quadraticBezier, System startPoint, double t ) : Point

Method Details

Concat() public static method

Concats path figures to a path geometry.
public static Concat ( this pathGeometry, IEnumerable pathFigures ) : void
pathGeometry this The path geometry.
pathFigures IEnumerable The path figures.
return void

EndPoint() public static method

Returns the end point of a path segment.
public static EndPoint ( this pathSegment ) : Point
pathSegment this The path segment.
return System.Windows.Point

MiddlePoint() public static method

Returns the middle point of a path figure.
public static MiddlePoint ( this pathFigure ) : Point
pathFigure this The path figure.
return System.Windows.Point

MiddlePoint() public static method

Returns the middle point of a path segment.
public static MiddlePoint ( this pathSegment, System startPoint ) : Point
pathSegment this The path segment.
startPoint System The start point.
return System.Windows.Point

OrientationAtEnd() public static method

The orientation at the end of the path figure.
public static OrientationAtEnd ( this pathFigure ) : double
pathFigure this The path figure.
return double

OrientationAtEnd() public static method

The orientation at the end of the path segment.
public static OrientationAtEnd ( this pathSegment, System startSegmentPoint ) : double
pathSegment this The path segment.
startSegmentPoint System The starting point of the segment.
return double

OrientationAtMiddle() public static method

The orientation at the middle of the path figure.
public static OrientationAtMiddle ( this pathFigure ) : double
pathFigure this The path figure.
return double

OrientationAtMiddle() public static method

The orientation at the middle of the path segment (very approximative implementation....).
public static OrientationAtMiddle ( this pathSegment, System startPoint ) : double
pathSegment this The path segment.
startPoint System The start point.
return double

OrientationAtStart() public static method

The orientation at the origin of the path figure.
public static OrientationAtStart ( this pathFigure ) : double
pathFigure this The path figure.
return double

OrientationAtStart() public static method

The orientation at the origin of the path segment.
public static OrientationAtStart ( this pathSegment, System startPoint ) : double
pathSegment this The path segment.
startPoint System The start point.
return double

Transform() public static method

Transforms the specified path geometry and returns the result (as enumeration of PathFigure).
public static Transform ( this pathGeometry, System.Windows.Media.TransformGroup transform ) : IEnumerable
pathGeometry this The path geometry.
transform System.Windows.Media.TransformGroup The transform.
return IEnumerable

Transform() public static method

Transforms the specified path figure and returns the result.
public static Transform ( this pathFigure, System.Windows.Media.TransformGroup transform ) : System.Windows.Media.PathFigure
pathFigure this The path figure.
transform System.Windows.Media.TransformGroup The transform.
return System.Windows.Media.PathFigure

Transform() public static method

Transforms the specified path segment and returns the result.
public static Transform ( this pathSegment, System.Windows.Media.TransformGroup transform ) : System.Windows.Media.PathSegment
pathSegment this The path segment.
transform System.Windows.Media.TransformGroup The transform.
return System.Windows.Media.PathSegment

Transform() public static method

Transforms the specified point and returns the result.
public static Transform ( this point, Transform transform ) : Point
point this The point.
transform System.Windows.Media.Transform The transform.
return System.Windows.Point