Class Line
Inheritance
System.Object
Line
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
Direction
Declaration
Field Value
From
Declaration
Field Value
Length
Declaration
Field Value
Type |
Description |
System.Single |
|
To
Declaration
Field Value
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
Returns