Ray
La référence est en anglais : elle est générée à partir des commentaires du code, écrits en anglais.
csharp
public struct Ray : IFormattableNamespace NodeWorld.Flux.
A ray: a starting point and a direction of length 1.
Constructors
Ray
csharp
public Ray(Vector3 origin, Vector3 direction)A ray from origin along direction (normalized).
Properties
origin
csharp
public Vector3 origin { get; set; }The starting point.
direction
csharp
public Vector3 direction { get; set; }The direction, of length 1 (a value set is normalized).
Methods
GetPoint
csharp
public Vector3 GetPoint(float distance)The point at distance along the ray.
ToString
csharp
public override string ToString()"Origin: (x, y, z), Dir: (x, y, z)", with 2 decimals.
csharp
public string ToString(string format)The same text with the numbers in format.
csharp
public string ToString(string format, IFormatProvider formatProvider)The same text with the numbers in format (F2 when empty) and formatProvider (the invariant culture when null).
