Injecting service into domain object once again
问题 I've got specific domain that operates on a geographical data. I'm implementing this project in TypeScript and NodeJS and have following classes: Point - value object containing latitude and longitude Area - value object containing set of points as a shape definition Sector - entity (it's not persisted, but it's mutable) - containing area and set of points that lie inside it Now I need implement a method named isPointInside(point: Point) that calculates whether provided point fits inside of