/
Ray.yaml
101 lines (100 loc) · 2.75 KB
/
Ray.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: Ray
type: datatype
summary: |
Represents a line with a starting point that casts infinitely in a specific
direction.
description: |
The `Datatype.Ray` data type represents a half-line, finite in one direction
but infinite in the other. It can be defined by a 3D point, where the line
originates from, and a direction vector, which is the direction it goes in.
code_samples:
tags: []
deprecation_message: ''
constructors:
- name: Ray.new
summary: Returns a `Datatype.Ray` with the given `Origin` and `Direction`.
description: Returns a new `Datatype.Ray` with given `Origin` and `Direction`.
parameters:
- name: Origin
type: Vector3
default:
summary: ''
- name: Direction
type: Vector3
default:
summary: ''
code_samples: []
tags: []
deprecation_message: ''
constants: []
properties:
- name: Ray.Unit
type: Ray
summary: |
The `Datatype.Ray` with a normalized direction (the direction has a
magnitude of `1`).
description: |
The `Datatype.Ray` with a normalized direction (the direction has a
magnitude of `1`).
code_samples: []
tags: []
deprecation_message: ''
- name: Ray.Origin
type: Vector3
summary: |
The position of the origin.
description: |
The position of the origin.
code_samples: []
tags: []
deprecation_message: ''
- name: Ray.Direction
type: Vector3
summary: |
The direction vector of the `Datatype.Ray`.
description: |
The direction vector of the `Datatype.Ray`.
code_samples: []
tags: []
deprecation_message: ''
methods:
- name: Ray:ClosestPoint
summary: |
Returns a `Datatype.Vector3` projected onto the ray so that it is within
the `Datatype.Ray` line of sight.
description: |
Returns a `Datatype.Vector3` projected onto the ray so that it is within
the `Datatype.Ray` line of sight.
**Note:** the `Datatype.Ray` **must** be a unit ray for this method to
behave as expected!
parameters:
- name: point
type: Vector3
default:
summary: ''
returns:
- type: Vector3
summary: ''
code_samples: []
tags: []
deprecation_message: ''
- name: Ray:Distance
summary: |
Returns the distance between the given point and the closest point on the
`Datatype.Ray`.
description: |
Returns the distance between the given point and the point on the ray
nearest to the given point (`Datatype.Ray.ClosestPoint(point)`).
parameters:
- name: point
type: Vector3
default:
summary: ''
returns:
- type: number
summary: ''
code_samples: []
tags: []
deprecation_message: ''
functions:
math_operations: