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

f757bb6a 3d00 8b72 4685 e6aa5751f93a

haplokuon edited this page May 6, 2023 · 1 revision

FromNormal(String, Vector3, Vector3, Double) Method

netDxf 3.0.0 Library

Creates a new user coordinate system from the XY plane normal (z-axis).

Definition

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

C#

public static UCS FromNormal(
	string name,
	Vector3 origin,
	Vector3 normal,
	double rotation
)

VB

Public Shared Function FromNormal ( 
	name As String,
	origin As Vector3,
	normal As Vector3,
	rotation As Double
) As UCS

C++

public:
static UCS^ FromNormal(
	String^ name, 
	Vector3 origin, 
	Vector3 normal, 
	double rotation
)

F#

static member FromNormal : 
        name : string * 
        origin : Vector3 * 
        normal : Vector3 * 
        rotation : float -> UCS 

Parameters

  String
User coordinate system name.
  Vector3
Origin in WCS.
  Vector3
XY plane normal (z-axis).
  Double
The counter-clockwise angle in radians along the normal (z-axis).

Return Value

UCS
A new user coordinate system.

Remarks

This method uses the ArbitraryAxis algorithm to obtain the user coordinate system x-axis and y-axis.

See Also

Reference

UCS Class
FromNormal Overload
netDxf.Tables Namespace

Clone this wiki locally