-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Properly expose `Discard`, `Extend`, and `Insert` operations - Document all remaining functions - now everything should have some description in docs - Update `README.md` with newly implemented operations - Simplify operations table in `README.md` - Add `Remainder` operation to the *planned* list
- Loading branch information
Showing
41 changed files
with
490 additions
and
118 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
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 |
---|---|---|
@@ -1,25 +1,31 @@ | ||
package govec | ||
|
||
func (v V3F[T]) discardX() V2F[T] { | ||
// DiscardX returns a new V2F[T] with the X component omitted. | ||
func (v V3F[T]) DiscardX() V2F[T] { | ||
return V2F[T]{X: v.Y, Y: v.Z} | ||
} | ||
|
||
func (v V3F[T]) discardY() V2F[T] { | ||
// DiscardY returns a new V2F[T] with the Y component omitted. | ||
func (v V3F[T]) DiscardY() V2F[T] { | ||
return V2F[T]{X: v.X, Y: v.Z} | ||
} | ||
|
||
func (v V3F[T]) discardZ() V2F[T] { | ||
// DiscardZ returns a new V2F[T] with the Z component omitted. | ||
func (v V3F[T]) DiscardZ() V2F[T] { | ||
return V2F[T]{X: v.X, Y: v.Y} | ||
} | ||
|
||
func (v V3I[T]) discardX() V2I[T] { | ||
// DiscardX returns a new V2I[T] with the X component omitted. | ||
func (v V3I[T]) DiscardX() V2I[T] { | ||
return V2I[T]{X: v.Y, Y: v.Z} | ||
} | ||
|
||
func (v V3I[T]) discardY() V2I[T] { | ||
// DiscardY returns a new V2I[T] with the Y component omitted. | ||
func (v V3I[T]) DiscardY() V2I[T] { | ||
return V2I[T]{X: v.X, Y: v.Z} | ||
} | ||
|
||
func (v V3I[T]) discardZ() V2I[T] { | ||
// DiscardZ returns a new V2I[T] with the Z component omitted. | ||
func (v V3I[T]) DiscardZ() V2I[T] { | ||
return V2I[T]{X: v.X, Y: v.Y} | ||
} |
Oops, something went wrong.