public ElipseLine(float Point1x, float Point1y, float Point2x, float Point2y, sbyte Passability) { point1x = Point1x; point1y = Point1y; point2x = Point2x; point2y = Point2y; passability = Passability; float dirX = Point2x - Point1x; float dirY = Point2y - Point1y; length = SomeMath.Magnitude(dirX, dirY); normalizedX = dirX / length; normalizedY = dirY / length; }