Show / Hide Table of Contents

Class LineD

Inheritance
System.Object
LineD
Namespace: VRageMath
Assembly: VRage.Math.dll
Syntax
public sealed class LineD : ValueType

Constructors

LineD(Vector3D, Vector3D)

Declaration
public LineD(Vector3D from, Vector3D to)
Parameters
Type Name Description
Vector3D from
Vector3D to

LineD(Vector3D, Vector3D, Double)

Declaration
public LineD(Vector3D from, Vector3D to, double lineLength)
Parameters
Type Name Description
Vector3D from
Vector3D to
System.Double lineLength

Fields

Direction

Declaration
public Vector3D Direction
Field Value
Type Description
Vector3D

From

Declaration
public Vector3D From
Field Value
Type Description
Vector3D

Length

Declaration
public double Length
Field Value
Type Description
System.Double

To

Declaration
public Vector3D To
Field Value
Type Description
Vector3D

Methods

GetBoundingBox()

Declaration
public BoundingBoxD GetBoundingBox()
Returns
Type Description
BoundingBoxD

GetHash()

Declaration
public long GetHash()
Returns
Type Description
System.Int64

GetShortestDistanceSquared(LineD, LineD)

Declaration
public static double GetShortestDistanceSquared(LineD line1, LineD line2)
Parameters
Type Name Description
LineD line1
LineD line2
Returns
Type Description
System.Double

GetShortestVector(ref LineD, ref LineD, out Vector3D, out Vector3D)

Declaration
public static Vector3D GetShortestVector(ref LineD line1, ref LineD line2, out Vector3D res1, out Vector3D res2)
Parameters
Type Name Description
LineD line1
LineD line2
Vector3D res1
Vector3D res2
Returns
Type Description
Vector3D

Operators

Explicit(Line to LineD)

Declaration
public static explicit operator LineD(Line b)
Parameters
Type Name Description
Line b
Returns
Type Description
LineD

Explicit(LineD to Line)

Declaration
public static explicit operator Line(LineD b)
Parameters
Type Name Description
LineD b
Returns
Type Description
Line
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾