Skip to content

Commit a5753bd

Browse files
committed
Exposing some functions on Mat44 and AABox
1 parent bb35dd9 commit a5753bd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

JoltJS.idl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,10 +506,12 @@ interface Mat44 {
506506
[Value] static Mat44 sRotationY(float inY);
507507
[Value] static Mat44 sRotationZ(float inZ);
508508
[Value] static Mat44 sRotation([Const, Ref] Quat inQ);
509+
[Value, BindTo="sRotation"] static Mat44 sRotationAxisAngle([Const, Ref] Vec3 inAxis, float inAngle);
509510
[Value] static Mat44 sTranslation([Const, Ref] Vec3 inTranslation);
510511
[Value] static Mat44 sRotationTranslation([Const, Ref] Quat inRotation, [Const, Ref] Vec3 inTranslation);
511512
[Value] static Mat44 sInverseRotationTranslation([Const, Ref] Quat inRotation, [Const, Ref] Vec3 inTranslation);
512513
[Value] static Mat44 sScale(float inScale);
514+
[Value, BindTo="sScale"] static Mat44 sScaleVec3([Const, Ref] Vec3 inScale);
513515
[Value] static Mat44 sOuterProduct([Const, Ref] Vec3 inV1, [Const, Ref] Vec3 inV2);
514516
[Value] static Mat44 sCrossProduct([Const, Ref] Vec3 inV);
515517
[Value] static Mat44 sQuatLeftMultiply([Const, Ref] Quat inQ);
@@ -530,6 +532,7 @@ interface Mat44 {
530532
boolean IsClose([Const, Ref] Mat44 inM, optional float inMaxDistSq);
531533
[Operator="+=", Const, Ref] Mat44 Add([Const, Ref] Mat44 inM);
532534
[Operator="*", Value] Mat44 MulFloat(float inV);
535+
[Operator="*", Value] Mat44 MulMat44([Const, Ref] Mat44 inM);
533536
[Operator="*", Value] Vec3 MulVec3([Const, Ref] Vec3 inV);
534537
[Operator="*", Value] Vec4 MulVec4([Const, Ref] Vec4 inV);
535538
[Operator="+", Value] Mat44 AddMat44([Const, Ref] Mat44 inM);
@@ -613,17 +616,20 @@ interface AABox {
613616
void AABox([Const, Ref] Vec3 inMin, [Const, Ref] Vec3 inMax);
614617
[Value] static AABox sBiggest();
615618
[Value] static AABox sFromTwoPoints([Const, Ref] Vec3 inP1, [Const, Ref] Vec3 inP2);
619+
[Value] static AABox sFromTriangle([Const, Ref] VertexList inVertices, [Const, Ref] IndexedTriangle inTriangle);
616620
[Operator="=="] boolean Equals([Const, Ref] AABox inB);
617621
[Operator="!="] boolean NotEquals([Const, Ref] AABox inB);
618622
void SetEmpty();
619623
boolean IsValid();
620624
[BindTo="Encapsulate"] void EncapsulateVec3([Const, Ref] Vec3 inV);
621625
[BindTo="Encapsulate"] void EncapsulateAABox([Const, Ref] AABox inBox);
622626
[BindTo="Encapsulate"] void EncapsulateTriangle([Const, Ref] Triangle inTriangle);
627+
[BindTo="Encapsulate"] void EncapsulateIndexedTriangle([Const, Ref] VertexList inVertices, [Const, Ref] IndexedTriangle inTriangle);
623628
[Value] AABox Intersect([Const, Ref] AABox inOther);
624629
void EnsureMinimalEdgeLength(float inMinEdgeLength);
625630
void ExpandBy([Const, Ref] Vec3 inV);
626631
[Value] Vec3 GetCenter();
632+
[Value] Vec3 GetExtent();
627633
[Value] Vec3 GetSize();
628634
float GetSurfaceArea();
629635
float GetVolume();

0 commit comments

Comments
 (0)