Immerseum SDK: VR Simulator (version: BETA-0.9)
       [view as Desktop | Tablet | Mobile]
getBisectingVertices Method
The Vector3 position of the first point in the sequence.
The Vector3 position of the point after which a new point should be inserted.
The Vector3 position of the point before which a new point should be inserted.
The percentage of the distance between the point and previous point that the point should be moved back (towards the previous point), expressed as a float.
Given a sequence of three points, inserts a new point between the last two points.
Syntax
public static UnityEngine.Vector3[] getBisectingVertices( 
   UnityEngine.Vector3 previousPoint,
   UnityEngine.Vector3 point,
   UnityEngine.Vector3 nextPoint,
   float adjustmentFactor
)

Parameters

previousPoint
The Vector3 position of the first point in the sequence.
point
The Vector3 position of the point after which a new point should be inserted.
nextPoint
The Vector3 position of the point before which a new point should be inserted.
adjustmentFactor
The percentage of the distance between the point and previous point that the point should be moved back (towards the previous point), expressed as a float.

Return Value

An array of three Vector3 positions, where the first position corresponds to point (adjusted so as to make room) and the third corresponds to the nextPoint.
See Also

Reference

Shapes Class
Shapes Members

 

 


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

Send Feedback