Pārlūkot izejas kodu

Add missing intersectSphere() documentation for Ray (#9412)

* Add intersectSphere() method to Ray docs

* Remove ?s in Ray documentation after return values

These are unique phenomenon in the current docs and don't seem to
indicate anything meaningful.
Sean Zellmer 9 gadi atpakaļ
vecāks
revīzija
07c5085839
1 mainītis faili ar 12 papildinājumiem un 4 dzēšanām
  1. 12 4
      docs/api/math/Ray.html

+ 12 - 4
docs/api/math/Ray.html

@@ -121,7 +121,7 @@
 		Return whether this and the other [page:Ray] have equal offsets and directions.
 		</div>
 
-		<h3>[method:Vector3 intersectBox]( [page:Box3 box], [page:Vector3 optionalTarget] = null ) [page:Vector3]?</h3>
+		<h3>[method:Vector3 intersectBox]( [page:Box3 box], [page:Vector3 optionalTarget] = null ) [page:Vector3]</h3>
 		<div>
 		box  -- [page:Box3] The [page:Box3] to intersect with.<br />
 		optionalTarget -- [page:Vector3] The [page:Vector3] to store the result in, or *null* to create a new [page:Vector3].
@@ -130,7 +130,7 @@
 		Intersect this [page:Ray] with a [page:Box3], returning the intersection point or *null* if there is no intersection.
 		</div>
 
-		<h3>[method:Vector3 intersectPlane]( [page:Plane plane], [page:Vector3 optionalTarget] = null ) [page:Vector3]?</h3>
+		<h3>[method:Vector3 intersectPlane]( [page:Plane plane], [page:Vector3 optionalTarget] = null ) [page:Vector3]</h3>
 		<div>
 		plane -- [page:Plane] The [page:Plane] to intersect with.<br />
 		optionalTarget -- [page:Vector3] The [page:Vector3] to store the result in, or *null* to create a new [page:Vector3].
@@ -138,9 +138,17 @@
 		<div>
 		Intersect this [page:Ray] with a [page:Plane], returning the intersection point or *null* if there is no intersection.
 		</div>
-		function ( a, b, c, backfaceCulling, optionalTarget )
 
-		<h3>[method:Vector3 intersectTriangle]( [page:Vector3 a], [page:Vector3 b], [page:Vector3 c], [page:Boolean backfaceCulling], [page:Vector3 optionalTarget] = null ) [page:Vector3]?</h3>
+		<h3>[method:Vector3 intersectSphere]( [page:Sphere sphere], [page:Vector3 optionalTarget] = null ) [page:Vector3]</h3>
+		<div>
+		sphere -- [page:Sphere] The [page:Sphere] to intersect with.<br />
+		optionalTarget -- [page:Vector3] The [page:Vector3] to store the result in, or *null* to create a new [page:Vector3].
+		</div>
+		<div>
+		Intersect this [page:Ray] with a [page:Sphere], returning the intersection point or *null* if there is no intersection.
+		</div>
+
+		<h3>[method:Vector3 intersectTriangle]( [page:Vector3 a], [page:Vector3 b], [page:Vector3 c], [page:Boolean backfaceCulling], [page:Vector3 optionalTarget] = null ) [page:Vector3]</h3>
 		<div>
 		a, b, c -- [page:Vector3] The [page:Vector3] points on the triangle.<br />
 		backfaceCulling -- [page:Boolean] Whether to use backface culling.<br />