angle = atan2($y2 - $y1, $x2 - $x1); $this->sidedef = $side === 0 ? $line->front : $line->back; $this->frontSector = $this->sidedef->sector; $this->backSector = $side === 0 ? $line->backSector : $line->frontSector; } }