Skip to content

Commit

Permalink
address some review comments, see #109
Browse files Browse the repository at this point in the history
  • Loading branch information
jbphet committed Feb 26, 2025
1 parent 54df716 commit 50c67ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 0 additions & 5 deletions js/photons/model/Photon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ export const DOWN = new Vector2( 0, -1 );
export const LEFT = new Vector2( -1, 0 );
export const RIGHT = new Vector2( 1, 0 );

// Due to the experiment's nature, when photons are split,
// the resulting states will either be measured as vertical or horizontal.
// REVIEW: Unused
export type PossiblePolarizationResult = 'vertical' | 'horizontal';

class Photon {

// the angle of polarization for this photon, in degrees
Expand Down
5 changes: 2 additions & 3 deletions js/photons/model/PhotonMotionState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ export class PhotonMotionState {
public constructor( public position: Vector2,
public direction: Vector2,
public probability: number ) {
// REVIEW: Is this actually a no-op? It does create a class instance right? I might not understand the full
// behavior of an empty constructor.
// no-op

// no additional initialization is required
}

/**
Expand Down

0 comments on commit 50c67ab

Please sign in to comment.