Ray

RAY entity (DXF Reference) starts at Ray.dxf.point and continues to infinity (construction line).

Subclass of

ezdxf.entities.XLine

DXF type

'RAY'

Factory function

ezdxf.layouts.BaseLayout.add_ray()

Inherited DXF attributes

Common graphical DXF attributes

Required DXF version

DXF R2000 ('AC1015')

class ezdxf.entities.Ray
dxf.start

Start point as (3D Point in WCS)

dxf.unit_vector

Unit direction vector as (3D Point in WCS)

transform(m: Matrix44) → Ray

Transform XLINE/RAY entity by transformation matrix m inplace.

New in version 0.13.

translate(dx: float, dy: float, dz: float) → Ray

Optimized XLINE/RAY translation about dx in x-axis, dy in y-axis and dz in z-axis, returns self (floating interface).

New in version 0.13.