File: ray.rst

package info (click to toggle)
ezdxf 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 104,528 kB
  • sloc: python: 182,341; makefile: 116; lisp: 20; ansic: 4
file content (32 lines) | stat: -rw-r--r-- 927 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Ray
===

.. module:: ezdxf.entities
    :noindex:

The RAY entity (`DXF Reference`_) starts at :attr:`Ray.dxf.point` and continues to
infinity (construction line).

======================== ==========================================
Subclass of              :class:`ezdxf.entities.XLine`
DXF type                 ``'RAY'``
Factory function         :meth:`ezdxf.layouts.BaseLayout.add_ray`
Inherited DXF attributes :ref:`Common graphical DXF attributes`
Required DXF version     DXF R2000 (``'AC1015'``)
======================== ==========================================

.. _DXF Reference: http://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-638B9F01-5D86-408E-A2DE-FA5D6ADBD415

.. class:: Ray

    .. attribute:: dxf.start

    Start point as (3D Point in :ref:`WCS`)

    .. attribute:: dxf.unit_vector

    Unit direction vector as (3D Point in :ref:`WCS`)

    .. automethod:: transform

    .. automethod:: translate