Skip to content

Commit ccfc971

Browse files
Merge branch 'HTK-Master' into HTK-Dictation
2 parents 9341de2 + 2577dc6 commit ccfc971

File tree

4 files changed

+27
-9
lines changed

4 files changed

+27
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Library/
1010
Assets/AssetStoreTools*
1111
App/
1212
UWP/
13+
/WindowsStoreApp
1314
project.json
1415
project.lock.json
1516

Assets/HoloToolkit-UnitTests/Editor/Utilities/Extensions/VectorExtensionsTests.cs

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,26 @@ public void Vector3_RotateAround_Euler()
6868
[Test]
6969
public void Vector3_TransformPoint()
7070
{
71-
throw new NotImplementedException();
71+
Vector3 point = new Vector3(1f, 2f, 3f);
72+
Vector3 scale = new Vector3(2f, 3f, 4f); // scaled point: (2, 6, 12)
73+
Quaternion rotation = Quaternion.AngleAxis(180f, Vector3.up); // scaled rotated point: (-2, 6, -12)
74+
Vector3 translation = new Vector3(3f, 4f, 5f); // translated scaled rotated point: (1, 10, -7)
75+
Vector3 expected = new Vector3(1, 10, -7);
76+
Vector3 result = point.TransformPoint(translation, rotation, scale);
77+
Assert.That(Vector3.Distance(result, expected), Is.LessThan(0.00001f));
7278
}
7379

7480
[Test]
7581
public void Vector3_InverseTransformPoint()
7682
{
77-
throw new NotImplementedException();
83+
// Perform the same transformation as Vector3_TransformPoint in reverse.
84+
Vector3 point = new Vector3(1, 10, -7);
85+
Vector3 scale = new Vector3(2f, 3f, 4f);
86+
Quaternion rotation = Quaternion.AngleAxis(180f, Vector3.up);
87+
Vector3 translation = new Vector3(3f, 4f, 5f);
88+
Vector3 expected = new Vector3(1f, 2f, 3f);
89+
Vector3 result = point.InverseTransformPoint(translation, rotation, scale);
90+
Assert.That(Vector3.Distance(result, expected), Is.LessThan(0.00001f));
7891
}
7992

8093
[Test]

Assets/HoloToolkit/SpatialMapping/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ Generates planes and classifies them by type (wall, ceiling, floor, table, unkno
142142

143143
**WallMaterial** Material to use when rendering wall plane types.
144144

145-
**FloorMaterial** Material to use when rendering ceiling plane types.
145+
**FloorMaterial** Material to use when rendering floor plane types.
146+
147+
**CeilingMaterial** Material to use when rendering ceiling plane types.
146148

147149
**TableMaterial** Material to use when rendering table plane types.
148150

Assets/HoloToolkit/SpatialUnderstanding/Prefabs/SpatialUnderstanding.prefab

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ GameObject:
1616
m_ObjectHideFlags: 0
1717
m_PrefabParentObject: {fileID: 0}
1818
m_PrefabInternal: {fileID: 100100000}
19-
serializedVersion: 4
19+
serializedVersion: 5
2020
m_Component:
21-
- 4: {fileID: 4000012071801678}
22-
- 114: {fileID: 114000012099205058}
23-
- 114: {fileID: 114000012152922318}
24-
- 114: {fileID: 114000013027790266}
21+
- component: {fileID: 4000012071801678}
22+
- component: {fileID: 114000012099205058}
23+
- component: {fileID: 114000012152922318}
24+
- component: {fileID: 114000013027790266}
2525
m_Layer: 0
2626
m_Name: SpatialUnderstanding
2727
m_TagString: Untagged
@@ -79,4 +79,6 @@ MonoBehaviour:
7979
m_Name:
8080
m_EditorClassIdentifier:
8181
ImportMeshPeriod: 1
82-
MeshMaterial: {fileID: 2100000, guid: ddc2ff62e97ce6d41991784c3aa8e233, type: 2}
82+
meshMaterial: {fileID: 2100000, guid: ddc2ff62e97ce6d41991784c3aa8e233, type: 2}
83+
MaxFrameTime: 5
84+
CreateMeshColliders: 1

0 commit comments

Comments
 (0)