Ejemplo n.º 1
0
 /// <summary>
 /// Get a rotation angle from a transform.
 /// </summary>
 public static double ToDxfAngle(this Transform transform, DxfRenderContext context)
 {
     // TODO: use the context to get correct orientation
     return(Vector3.XAxis.PlaneAngleTo(transform.XAxis));
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Get a DXFPoint from a transform.
        /// </summary>

        public static DxfPoint ToDxfPoint(this Transform transform, DxfRenderContext context)
        {
            // TODO: use the context to get correct orientation
            return(transform.Origin.ToDxfPoint());
        }