public Vector2?ProjectTangent(Vector3 spacePoint, Vector3 tangent) { var localPoint = LocalToGlobal.ApplyInv(spacePoint); var localTangent = LocalToGlobal.Rotation.ApplyInv(tangent); return(LocalModel.ProjectTangent(localPoint, localTangent)); }
public Segment3?CropVisible(Segment3 segment) { var localSegment = LocalToGlobal.ApplyInv(segment); var localCrop = LocalModel.CropVisible(localSegment); if (localCrop == null) { return(null); } else { return(LocalToGlobal.Apply(localCrop.Value)); } }
public double Distance2(Vector3 point) { return(_localPolyhedron.Distance2(LocalToGlobal.ApplyInv(point))); }
public bool Contains(Vector3 point) { return(_localPolyhedron.Contains(LocalToGlobal.ApplyInv(point))); }
public Segment2?Project(Segment3 segment) { var localSegment = LocalToGlobal.ApplyInv(segment); return(LocalModel.Project(localSegment)); }
public Vector2?Project(Vector3 spacePoint) { var localPoint = LocalToGlobal.ApplyInv(spacePoint); return(LocalModel.Project(localPoint)); }