Skip to content

Commit

Permalink
Adding setters for LineIntersectionPointNormal.point/.normal
Browse files Browse the repository at this point in the history
  • Loading branch information
LuizZak committed Aug 19, 2024
1 parent 1df4b38 commit e314fb0
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,14 @@ extension LineIntersectionPointNormal: Equatable where Vector: Equatable { }
extension LineIntersectionPointNormal: Hashable where Vector: Hashable { }

extension LineIntersectionPointNormal: PlaneType where Vector: VectorFloatingPoint {
public var point: Vector { pointNormal.point }
public var normal: Vector { pointNormal.normal }
public var point: Vector {
get { pointNormal.point }
set { pointNormal.point = newValue }
}
public var normal: Vector {
get { pointNormal.normal }
set { pointNormal.normal = newValue }
}

@_transparent
public var pointOnPlane: Vector { pointNormal.point }
Expand Down

0 comments on commit e314fb0

Please sign in to comment.