Immerseum SDK: VR Simulator (version: BETA-0.9)
       [view as Desktop | Tablet | Mobile]
isRightAngleTurn Method
The Vector3 coordinates of the first point.
The Vector3 coordinates of the second point.
If true, defines a right angle as being 85 - 95 degrees (inclusive). If false, defines a right angle as being precisely 90 degrees. Defaults to false.
Determines whether the two points provided are at right angles to each other (i.e. generate a sharp corner).
Syntax
public static bool isRightAngleTurn( 
   UnityEngine.Vector3 point,
   UnityEngine.Vector3 nextPoint,
   bool approximate
)

Parameters

point
The Vector3 coordinates of the first point.
nextPoint
The Vector3 coordinates of the second point.
approximate
If true, defines a right angle as being 85 - 95 degrees (inclusive). If false, defines a right angle as being precisely 90 degrees. Defaults to false.

Return Value

true if the points are at right angles to each other, otherwise false.
See Also

Reference

Shapes Class
Shapes Members

 

 


Copyright (c) 2015 Immerseum Inc. All rights reserved.

Send Feedback