Show / Hide Table of Contents

Class Ray

Represents a ray EntityObject.

Inheritance
System.Object
DxfObject
EntityObject
Ray
Implements
IHasXData
System.ICloneable
Inherited Members
EntityObject.LayerChanged
EntityObject.OnLayerChangedEvent(Layer, Layer)
EntityObject.LinetypeChanged
EntityObject.OnLinetypeChangedEvent(Linetype, Linetype)
EntityObject.XDataAddAppReg
EntityObject.OnXDataAddAppRegEvent(ApplicationRegistry)
EntityObject.XDataRemoveAppReg
EntityObject.OnXDataRemoveAppRegEvent(ApplicationRegistry)
EntityObject.Reactors
EntityObject.Type
EntityObject.Color
EntityObject.Layer
EntityObject.Linetype
EntityObject.Lineweight
EntityObject.Transparency
EntityObject.LinetypeScale
EntityObject.IsVisible
EntityObject.Normal
EntityObject.Owner
EntityObject.XData
EntityObject.TransformBy(Matrix4)
EntityObject.ToString()
DxfObject.CodeName
DxfObject.Handle
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: netDxf.Entities
Assembly: CADability.dll
Syntax
public class Ray : EntityObject, IHasXData, ICloneable
Remarks

A ray is a line in three-dimensional space that starts in the specified origin and extends to infinity.

Constructors

| Improve this Doc View Source

Ray()

Initializes a new instance of the Ray class.

Declaration
public Ray()
| Improve this Doc View Source

Ray(Vector2, Vector2)

Initializes a new instance of the Ray class.

Declaration
public Ray(Vector2 origin, Vector2 direction)
Parameters
Type Name Description
Vector2 origin

Ray Vector2

Vector2 direction

Ray Vector2

| Improve this Doc View Source

Ray(Vector3, Vector3)

Initializes a new instance of the Ray class.

Declaration
public Ray(Vector3 origin, Vector3 direction)
Parameters
Type Name Description
Vector3 origin

Ray start Vector3

Vector3 direction

Ray end Vector3

Properties

| Improve this Doc View Source

Direction

Gets or sets the ray Vector3.

Declaration
public Vector3 Direction { get; set; }
Property Value
Type Description
Vector3
| Improve this Doc View Source

Origin

Gets or sets the ray Vector3.

Declaration
public Vector3 Origin { get; set; }
Property Value
Type Description
Vector3

Methods

| Improve this Doc View Source

Clone()

Creates a new Ray that is a copy of the current instance.

Declaration
public override object Clone()
Returns
Type Description
System.Object

A new Ray that is a copy of this instance.

Overrides
EntityObject.Clone()
| Improve this Doc View Source

TransformBy(Matrix3, Vector3)

Moves, scales, and/or rotates the current entity given a 3x3 transformation matrix and a translation vector.

Declaration
public override void TransformBy(Matrix3 transformation, Vector3 translation)
Parameters
Type Name Description
Matrix3 transformation

Transformation matrix.

Vector3 translation

Translation vector.

Overrides
EntityObject.TransformBy(Matrix3, Vector3)
Remarks

Matrix3 adopts the convention of using column vectors to represent a transformation matrix.

Implements

IHasXData
System.ICloneable
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX