Skip to content

Commit

Permalink
Merge pull request #403 from scipp/camera-properties
Browse files Browse the repository at this point in the history
fix: add return statements
  • Loading branch information
jokasimr authored Jan 23, 2025
2 parents 0ee82bd + 43393c7 commit 159c01a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/plopp/graphics/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,31 +122,31 @@ def position(self) -> tuple[float, float, float] | None:
The position of the camera. If camera units have been set, the position returned
will be converted to the specified units.
"""
self.get('position')
return self.get('position')

@property
def look_at(self) -> tuple[float, float, float] | None:
"""
The point the camera is looking at. If camera units have been set, the position
returned will be converted to the specified units.
"""
self.get('look_at')
return self.get('look_at')

@property
def near(self) -> float | None:
"""
The distance to the near clipping plane (how close to the camera objects can be
before they disappear).
"""
self.get('near')
return self.get('near')

@property
def far(self) -> float | None:
"""
The distance to the far clipping plane (how far from the camera objects can be
before they disappear).
"""
self.get('far')
return self.get('far')

def __repr__(self):
return (
Expand Down

0 comments on commit 159c01a

Please sign in to comment.