TrackFlow Pro Documentation 1
Generate roller coasters, railroads, conveyors and more with a physics aware spline and meshing system.
Loading...
Searching...
No Matches
TrackFlowPro.Runtime.ArcFrameBridge Class Reference

Convert native ArcFrame types to native TrackFlow types. There is almost no functional difference between this class and Helpers, I got too deep and don't want to combine them and fix all the references. They both have different methods, and Helpers is geared more towards math utilities. More...

Static Public Member Functions

static double[] D3 (Vector3 v)
 Unity Vector3 -> double[3].
static void D3 (Vector3 v, double[] array3)
static double[,] R3 (Quaternion q)
 Create a rotation matrix from a quaternion. C# native 2d arrays are accessed row first (row major order, the row is the first index) But Unity's Matrix4x4 uses column major order.
static Vector3 Vector3 Vector3 binormal GetBases (Quaternion q)
static RigidTransform ToRigidTransform (Transform t)
 Build an RigidTransform from a Unity Transform (position+rotation only, uniform scale assumed).
static Vector3 ToV3 (double[] d)
static Vector2 ToV2 (double[] d)
static Vector3 MCol (double[,] M, int col)
 Return the column of a double matrix as a Vector3.
static void SetCol (double[,] M, int col, in Vector3 v)

Static Public Attributes

static Vector3 tangent
 Convert a quaternion into a set of basis vectors.
static Vector3 Vector3 normal

Detailed Description

Convert native ArcFrame types to native TrackFlow types. There is almost no functional difference between this class and Helpers, I got too deep and don't want to combine them and fix all the references. They both have different methods, and Helpers is geared more towards math utilities.

Member Function Documentation

◆ D3() [1/2]

double[] TrackFlowPro.Runtime.ArcFrameBridge.D3 ( Vector3 v)
static

Unity Vector3 -> double[3].

◆ D3() [2/2]

void TrackFlowPro.Runtime.ArcFrameBridge.D3 ( Vector3 v,
double[] array3 )
static

◆ GetBases()

Vector3 Vector3 Vector3 binormal TrackFlowPro.Runtime.ArcFrameBridge.GetBases ( Quaternion q)
static

◆ MCol()

Vector3 TrackFlowPro.Runtime.ArcFrameBridge.MCol ( double M[,],
int col )
static

Return the column of a double matrix as a Vector3.

Parameters
M
col
Returns

◆ R3()

double[,] TrackFlowPro.Runtime.ArcFrameBridge.R3 ( Quaternion q)
static

Create a rotation matrix from a quaternion. C# native 2d arrays are accessed row first (row major order, the row is the first index) But Unity's Matrix4x4 uses column major order.

Parameters
q
Returns

◆ SetCol()

void TrackFlowPro.Runtime.ArcFrameBridge.SetCol ( double M[,],
int col,
in Vector3 v )
static

◆ ToRigidTransform()

RigidTransform TrackFlowPro.Runtime.ArcFrameBridge.ToRigidTransform ( Transform t)
static

Build an RigidTransform from a Unity Transform (position+rotation only, uniform scale assumed).

◆ ToV2()

Vector2 TrackFlowPro.Runtime.ArcFrameBridge.ToV2 ( double[] d)
static

◆ ToV3()

Vector3 TrackFlowPro.Runtime.ArcFrameBridge.ToV3 ( double[] d)
static

Member Data Documentation

◆ normal

Vector3 Vector3 TrackFlowPro.Runtime.ArcFrameBridge.normal
static

◆ tangent

Vector3 TrackFlowPro.Runtime.ArcFrameBridge.tangent
static

Convert a quaternion into a set of basis vectors.

Parameters
q
Returns

The documentation for this class was generated from the following file: