Struct RayStep
Assembly: cs.temp.dll.dll
Constructors
Declaration
public RayStep(Vector3 origin, Vector3 terminus)
Parameters
Type |
Name |
Description |
Vector3 |
origin |
|
Vector3 |
terminus |
|
Properties
Declaration
public Vector3 Direction { get; }
Property Value
Declaration
public float Length { get; }
Property Value
Declaration
public Vector3 Origin { get; }
Property Value
Declaration
public Vector3 Terminus { get; }
Property Value
Methods
Declaration
public bool Contains(Vector3 point)
Parameters
Type |
Name |
Description |
Vector3 |
point |
|
Returns
Declaration
public void CopyRay(Ray ray, float rayLength)
Parameters
Type |
Name |
Description |
Ray |
ray |
|
Single |
rayLength |
|
Returns a direction along an array of RaySteps by distance
Declaration
public static Vector3 GetDirectionByDistance(RayStep[] steps, float distance)
Parameters
Returns
Declaration
public Vector3 GetPoint(float distance)
Parameters
Type |
Name |
Description |
Single |
distance |
|
Returns
Returns a point along an array of RaySteps by distance
Declaration
public static Vector3 GetPointByDistance(RayStep[] steps, float distance)
Parameters
Returns
Returns a RayStep along an array of RaySteps by distance
Declaration
public static RayStep GetStepByDistance(RayStep[] steps, float distance, ref float remainingDistance)
Parameters
Returns
Update current raystep with new origin and terminus points.
Pass by ref to avoid unnecessary struct copy into function since values will be copied anyways locally
Declaration
public void UpdateRayStep(ref Vector3 origin, ref Vector3 terminus)
Parameters
Type |
Name |
Description |
Vector3 |
origin |
beginning of raystep origin
|
Vector3 |
terminus |
end of raystep
|
Operators
Declaration
public static implicit operator Ray(RayStep r)
Parameters
Returns