Show / Hide Table of Contents

Class Line

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

Constructors

Line(Vector3, Vector3, Boolean)

Declaration
public Line(Vector3 from, Vector3 to, bool calculateBoundingBox = true)
Parameters
Type Name Description
Vector3 from
Vector3 to
System.Boolean calculateBoundingBox

Fields

BoundingBox

Declaration
public BoundingBox BoundingBox
Field Value
Type Description
BoundingBox

Direction

Declaration
public Vector3 Direction
Field Value
Type Description
Vector3

From

Declaration
public Vector3 From
Field Value
Type Description
Vector3

Length

Declaration
public float Length
Field Value
Type Description
System.Single

To

Declaration
public Vector3 To
Field Value
Type Description
Vector3

Methods

GetShortestDistanceSquared(Line, Line)

Declaration
public static float GetShortestDistanceSquared(Line line1, Line line2)
Parameters
Type Name Description
Line line1
Line line2
Returns
Type Description
System.Single

GetShortestVector(ref Line, ref Line, out Vector3, out Vector3)

Declaration
public static Vector3 GetShortestVector(ref Line line1, ref Line line2, out Vector3 res1, out Vector3 res2)
Parameters
Type Name Description
Line line1
Line line2
Vector3 res1
Vector3 res2
Returns
Type Description
Vector3
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾