Open sqeezy opened 1 year ago
Tagging subscribers to this area: @dotnet/area-system-numerics See info in area-owners.md if you want to be subscribed.
Author: | sqeezy |
---|---|
Assignees: | - |
Labels: | `api-suggestion`, `area-System.Numerics`, `untriaged` |
Milestone: | - |
namespace System.Numerics;
public partial struct Matrix4x4
{
public static Matrix4x4 CreateBillboardLeftHanded(Vector3 objectPosition, Vector3 cameraPosition, Vector3 cameraUpVector, Vector3 cameraForwardVector);
public static Matrix4x4 CreateConstrainedBillboardLeftHanded(Vector3 objectPosition, Vector3 cameraPosition, Vector3 rotateAxis, Vector3 cameraForwardVector, Vector3 objectForwardVector);
}
Background and motivation
Matrix4x4 recently added APIs for left handed creation of Matrix4x4. Replacing another matrix implementation led me to nice the billboard APIs did not get left handed equivalents. In order to not confuse people about which functions are actually expecting a right handed system, we should add left handed versions for the billboard APIs.
API Proposal
API Usage