Click or drag to resize
DigitalRuneLineShape Class
Represents an infinite line.
Inheritance Hierarchy

Namespace: DigitalRune.Geometry.Shapes
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
[SerializableAttribute]
public class LineShape : Shape

The LineShape type exposes the following members.

Constructors
  NameDescription
Public methodLineShape
Initializes a new instance of the LineShape class.
Public methodLineShape(Line)
Initializes a new instance of the LineShape class from a Line.
Public methodLineShape(Vector3F, Vector3F)
Initializes a new instance of the LineShape class from a point and direction.
Top
Methods
  NameDescription
Public methodClone
Creates a new Shape that is a clone (deep copy) of the current instance.
(Inherited from Shape.)
Protected methodCloneCore
Makes the instance a clone (deep copy) of the specified Shape.
(Overrides ShapeCloneCore(Shape).)
Protected methodCreateInstanceCore
When implemented in a derived class, creates a new instance of the Shape derived class.
(Overrides ShapeCreateInstanceCore.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetAabb
Computes the axis-aligned bounding box (AABB) for this shape in local space.
(Inherited from Shape.)
Public methodGetAabb(Pose)
Computes the axis-aligned bounding box (AABB) for this shape positioned in world space using the given Pose.
(Inherited from Shape.)
Public methodGetAabb(Vector3F, Pose)
Computes the axis-aligned bounding box (AABB) for this shape positioned in world space using the given scale and Pose.
(Overrides ShapeGetAabb(Vector3F, Pose).)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetMesh
Gets a mesh that represents this shape.
(Inherited from Shape.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetVolume
Gets the volume of this shape.
(Overrides ShapeGetVolume(Single, Int32).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnChanged
Raises the Changed event.
(Inherited from Shape.)
Protected methodOnGetMesh
Called when a mesh should be generated for the shape.
(Overrides ShapeOnGetMesh(Single, Int32).)
Public methodToString
Returns a String that represents the current Object.
(Overrides ObjectToString.)
Top
Properties
  NameDescription
Public propertyDirection
Gets or sets the direction.
Public propertyInnerPoint
Gets an inner point.
(Overrides ShapeInnerPoint.)
Public propertyStatic memberMeshSize
Gets or sets the length of the mesh that represents a LineShape.
Public propertyPointOnLine
Gets or sets a point on the line.
Top
Events
  NameDescription
Public eventChanged
Occurs when the shape was changed.
(Inherited from Shape.)
Top
Remarks

This class can be used if an IGeometricObject with a line shape is needed. Use the Line structure instead if you need a lightweight representation of a line (avoids allocating memory on the heap).

The line is defined using a point on the line and the direction. The Direction is always stored as a normalized vector.

See Also