Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

6e5ca892 c02b e485 2603 0185d18f9818

haplokuon edited this page May 6, 2023 · 1 revision

Transform(IEnumerable<Vector2>, Double, CoordinateSystem, CoordinateSystem) Method

netDxf 3.0.0 Library

Transforms a point list between coordinate systems.

Definition

Namespace: netDxf
Assembly: netDxf (in netDxf.dll) Version: 3.0.0

C#

public static List<Vector2> Transform(
	IEnumerable<Vector2> points,
	double rotation,
	CoordinateSystem from,
	CoordinateSystem to
)

VB

Public Shared Function Transform ( 
	points As IEnumerable(Of Vector2),
	rotation As Double,
	from As CoordinateSystem,
	to As CoordinateSystem
) As List(Of Vector2)

C++

public:
static List<Vector2>^ Transform(
	IEnumerable<Vector2>^ points, 
	double rotation, 
	CoordinateSystem from, 
	CoordinateSystem to
)

F#

static member Transform : 
        points : IEnumerable<Vector2> * 
        rotation : float * 
        from : CoordinateSystem * 
        to : CoordinateSystem -> List<Vector2> 

Parameters

  IEnumerable(Vector2)
Point list to transform.
  Double
Rotation angle in radians.
  CoordinateSystem
Point coordinate system.
  CoordinateSystem
Coordinate system of the transformed point.

Return Value

List(Vector2)
Transformed point list.

See Also

Reference

MathHelper Class
Transform Overload
netDxf Namespace

Clone this wiki locally