public static Vector3 perpendicularComponent(Vector3 source, Vector3 unitBasis)
 {
     return(source - OpenSteerUtility.parallelComponent(source, unitBasis));
 }
        public static float PointToSegmentDistance(Vector3 point, Vector3 ep0, Vector3 ep1, Vector3 segmentNormal, float segmentLength, ref Vector3 chosenPoint)
        {
            float num = 0f;

            return(OpenSteerUtility.PointToSegmentDistance(point, ep0, ep1, segmentNormal, segmentLength, ref chosenPoint, ref num));
        }
 public static Vector3 limitMaxDeviationAngle(Vector3 source, float cosineOfConeAngle, Vector3 basis)
 {
     return(OpenSteerUtility.vecLimitDeviationAngleUtility(true, source, cosineOfConeAngle, basis));
 }
        public static float PointToSegmentDistance(Vector3 point, Vector3 ep0, Vector3 ep1, Vector3 segmentNormal, float segmentLength, ref float segmentProjection)
        {
            Vector3 zero = Vector3.get_zero();

            return(OpenSteerUtility.PointToSegmentDistance(point, ep0, ep1, segmentNormal, segmentLength, ref zero, ref segmentProjection));
        }