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

9d9e8ee2 6528 eab1 c168 5ce231694d3c

haplokuon edited this page May 6, 2023 · 1 revision

Transform(Vector2, Double, CoordinateSystem, CoordinateSystem) Method

netDxf 3.0.0 Library

Transforms a point between coordinate systems.

Definition

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

C#

public static Vector2 Transform(
	Vector2 point,
	double rotation,
	CoordinateSystem from,
	CoordinateSystem to
)

VB

Public Shared Function Transform ( 
	point As Vector2,
	rotation As Double,
	from As CoordinateSystem,
	to As CoordinateSystem
) As Vector2

C++

public:
static Vector2 Transform(
	Vector2 point, 
	double rotation, 
	CoordinateSystem from, 
	CoordinateSystem to
)

F#

static member Transform : 
        point : Vector2 * 
        rotation : float * 
        from : CoordinateSystem * 
        to : CoordinateSystem -> Vector2 

Parameters

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

Return Value

Vector2
Transformed point.

See Also

Reference

MathHelper Class
Transform Overload
netDxf Namespace

Clone this wiki locally