Bearbeiten

Freigeben über


RayStep Struct

Definition

public value class RayStep
[System.Serializable]
public struct RayStep
[<System.Serializable>]
type RayStep = struct
Public Structure RayStep
Inheritance
RayStep
Attributes

Constructors

RayStep(Vector3, Vector3)

Properties

Direction
Length
Origin
Terminus

Methods

Contains(Vector3)
CopyRay(Ray, Single)
GetDirectionByDistance(RayStep[], Single)

Returns a direction along an array of RaySteps by distance

GetPoint(Single)
GetPointByDistance(RayStep[], Single)

Returns a point along an array of RaySteps by distance

GetStepByDistance(RayStep[], Single, Single)

Returns a RayStep along an array of RaySteps by distance

UpdateRayStep(Vector3, Vector3)

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

Operators

Implicit(RayStep to Ray)

Applies to