-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Window events, Add Boundingboxes
- Loading branch information
Showing
8 changed files
with
344 additions
and
360 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System.Numerics; | ||
|
||
namespace Bliss.CSharp.Geometry.Box; | ||
|
||
public struct BoundingBox { | ||
|
||
/// <summary> | ||
/// Minimum box-corner. | ||
/// </summary> | ||
public Vector3 Min; | ||
|
||
/// <summary> | ||
/// Maximum box-corner. | ||
/// </summary> | ||
public Vector3 Max; | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="BoundingBox"/> struct with the specified minimum and maximum vectors. | ||
/// </summary> | ||
/// <param name="min">The minimum vector defining one corner of the bounding box.</param> | ||
/// <param name="max">The maximum vector defining the opposite corner of the bounding box.</param> | ||
public BoundingBox(Vector3 min, Vector3 max) { | ||
this.Min = min; | ||
this.Max = max; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System.Numerics; | ||
|
||
namespace Bliss.CSharp.Geometry.Box; | ||
|
||
public struct OrientedBoundingBox { | ||
|
||
/// <summary> | ||
/// Minimum box-corner. | ||
/// </summary> | ||
public Vector3 Min; | ||
|
||
/// <summary> | ||
/// Maximum box-corner. | ||
/// </summary> | ||
public Vector3 Max; | ||
|
||
/// <summary> | ||
/// Box rotation. | ||
/// </summary> | ||
public Quaternion Rotation; | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="OrientedBoundingBox"/> struct with the specified minimum and maximum vectors and rotation. | ||
/// </summary> | ||
/// <param name="min">The minimum vector defining one corner of the bounding box.</param> | ||
/// <param name="max">The maximum vector defining the opposite corner of the bounding box.</param> | ||
/// <param name="rotation">The rotation of the bounding box as a quaternion.</param> | ||
public OrientedBoundingBox(Vector3 min, Vector3 max, Quaternion rotation) { | ||
this.Min = min; | ||
this.Max = max; | ||
this.Rotation = rotation; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.