Quelea.AxisAlignedBoxEnvironmentType.ClosestNormal C# (CSharp) Method

ClosestNormal() public method

public ClosestNormal ( Point3d pt ) : Vector3d
pt Point3d
return Vector3d
    public override Vector3d ClosestNormal(Point3d pt)
    {
      Brep brepEnv = environment.ToBrep();
      Point3d closestPoint;
      ComponentIndex componentIndex;
      double s;
      double t;
      const double maxDist = 100;
      Vector3d normal;
      brepEnv.ClosestPoint(pt, out closestPoint, out componentIndex, out s, out t, maxDist, out normal);
      return normal;
    }