Beispiel #1
0
 internal MDLMesh(Vector3 extent, Vector2i segments, bool inwardNormals, MDLGeometryType geometryType, IMDLMeshBufferAllocator allocator, int?hemisphereSegments, bool?cap, bool?isCone)
 {
     if (hemisphereSegments.HasValue)
     {
         // initCapsule
         InitializeHandle(InitCapsule(extent, segments, hemisphereSegments.Value, inwardNormals, geometryType, allocator), "initCapsuleWithExtent:cylinderSegments:hemisphereSegments:inwardNormals:geometryType:allocator:");
     }
     else if (cap.HasValue && isCone.HasValue)
     {
         // initHemisphere || initCone
         if (isCone.Value)
         {
             InitializeHandle(InitCone(extent, segments, inwardNormals, cap.Value, geometryType, allocator), "initConeWithExtent:segments:inwardNormals:cap:geometryType:allocator:");
         }
         else
         {
             InitializeHandle(InitHemisphere(extent, segments, inwardNormals, cap.Value, geometryType, allocator), "initHemisphereWithExtent:segments:inwardNormals:cap:geometryType:allocator:");
         }
     }
     else
     {
         // initSphere
         InitializeHandle(InitSphere(extent, segments, inwardNormals, geometryType, allocator), "initSphereWithExtent:segments:inwardNormals:geometryType:allocator:");
     }
 }
Beispiel #2
0
 public SCNVector4(Vector3 v)
 {
     X = v.X;
     Y = v.Y;
     Z = v.Z;
     W = 0.0f;
 }
Beispiel #3
0
 public SKUniform(string name, Vector3 value)
 {
     if (CheckSystemVersion())
     {
         InitializeHandle(InitWithNameVectorFloat3(name, value), "initWithName:vectorFloat3:");
     }
     else
     {
         InitializeHandle(InitWithNameFloatVector3(name, value), "initWithName:floatVector3:");
     }
 }
Beispiel #4
0
        public static MDLMesh CreateBox(Vector3 vector, Vector3i segments, MDLGeometryType geometryType, bool inwardNormals, IMDLMeshBufferAllocator allocator, MDLMeshVectorType type = MDLMeshVectorType.Dimensions)
        {
            switch (type)
            {
            case MDLMeshVectorType.Dimensions:
                return(NewBoxWithDimensions(vector, segments, geometryType, inwardNormals, allocator));

            case MDLMeshVectorType.Extent:
                return(new MDLMesh(vector, segments, inwardNormals, geometryType, allocator));

            default:
                throw new ArgumentException("The 'MDLMeshVectorType type' argument needs a value.");
            }
        }
Beispiel #5
0
        private static CollidableReference?GetCollidableAtMouse(Simulation simulation, LensComponent lens)
        {
            var lensDirection = new global::System.Numerics.Vector3(lens.Direction.X, lens.Direction.Y, lens.Direction.Z);
            var lensPosition  = new global::System.Numerics.Vector3(lens.Position.X, lens.Position.Y, lens.Position.Z);

            var rayDirection = lensDirection;
            var hitHandler   = default(RayHitHandler);

            hitHandler.T = float.MaxValue;
            simulation.RayCast(lensPosition, rayDirection, float.MaxValue, ref hitHandler);

            if (hitHandler.T < float.MaxValue)
            {
                return(hitHandler.HitCollidable);
            }

            return(null);
        }
Beispiel #6
0
 public global::Windows.Foundation.Point ProjectOntoFrame(global::System.Numerics.Vector3 coordinate)
 {
     throw new global::System.NotImplementedException("The member Point CameraIntrinsics.ProjectOntoFrame(Vector3 coordinate) is not implemented in Uno.");
 }
Beispiel #7
0
 public int TryUpdateScaleWithAdditionalVelocity(float velocityInPercentPerSecond, global::System.Numerics.Vector3 centerPoint)
 {
     throw new global::System.NotImplementedException("The member int InteractionTracker.TryUpdateScaleWithAdditionalVelocity(float velocityInPercentPerSecond, Vector3 centerPoint) is not implemented in Uno.");
 }
Beispiel #8
0
 public int TryUpdateScale(float value, global::System.Numerics.Vector3 centerPoint)
 {
     throw new global::System.NotImplementedException("The member int InteractionTracker.TryUpdateScale(float value, Vector3 centerPoint) is not implemented in Uno.");
 }
Beispiel #9
0
 public int TryUpdatePositionBy(global::System.Numerics.Vector3 amount)
 {
     throw new global::System.NotImplementedException("The member int InteractionTracker.TryUpdatePositionBy(Vector3 amount) is not implemented in Uno.");
 }
Beispiel #10
0
 public void SetPlacementOverride(global::Windows.Perception.Spatial.SpatialCoordinateSystem coordinateSystem, global::System.Numerics.Vector3 topCenterPosition, global::System.Numerics.Vector3 normal, global::System.Numerics.Vector2 maxSize)
 {
     global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.ApplicationModel.Preview.Holographic.HolographicKeyboardPlacementOverridePreview", "void HolographicKeyboardPlacementOverridePreview.SetPlacementOverride(SpatialCoordinateSystem coordinateSystem, Vector3 topCenterPosition, Vector3 normal, Vector2 maxSize)");
 }
Beispiel #11
0
 public CameraIntrinsics(global::System.Numerics.Vector2 focalLength, global::System.Numerics.Vector2 principalPoint, global::System.Numerics.Vector3 radialDistortion, global::System.Numerics.Vector2 tangentialDistortion, uint imageWidth, uint imageHeight)
 {
     global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.Media.Devices.Core.CameraIntrinsics", "CameraIntrinsics.CameraIntrinsics(Vector2 focalLength, Vector2 principalPoint, Vector3 radialDistortion, Vector2 tangentialDistortion, uint imageWidth, uint imageHeight)");
 }
Beispiel #12
0
 public void InsertVector3(string propertyName, global::System.Numerics.Vector3 value)
 {
     global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.UI.Composition.CompositionPropertySet", "void CompositionPropertySet.InsertVector3(string propertyName, Vector3 value)");
 }
Beispiel #13
0
 public global::Windows.UI.Composition.CompositionGetValueStatus TryGetVector3(string propertyName, out global::System.Numerics.Vector3 value)
 {
     throw new global::System.NotImplementedException("The member CompositionGetValueStatus CompositionPropertySet.TryGetVector3(string propertyName, out Vector3 value) is not implemented in Uno.");
 }
 public void SetFocusPoint(global::Windows.Perception.Spatial.SpatialCoordinateSystem coordinateSystem, global::System.Numerics.Vector3 position, global::System.Numerics.Vector3 normal, global::System.Numerics.Vector3 linearVelocity)
 {
     global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.Graphics.Holographic.HolographicCameraRenderingParameters", "void HolographicCameraRenderingParameters.SetFocusPoint(SpatialCoordinateSystem coordinateSystem, Vector3 position, Vector3 normal, Vector3 linearVelocity)");
 }
Beispiel #15
0
 public void UpdateLocationWithDisplayRelativeMode(global::System.Numerics.Vector3 position, global::System.Numerics.Quaternion orientation)
 {
     global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.Graphics.Holographic.HolographicQuadLayerUpdateParameters", "void HolographicQuadLayerUpdateParameters.UpdateLocationWithDisplayRelativeMode(Vector3 position, Quaternion orientation)");
 }
Beispiel #16
0
 public void SetParameters(global::System.Numerics.Vector3 startVector, global::System.Numerics.Vector3 endVector, global::System.TimeSpan duration)
 {
     global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.Gaming.Input.ForceFeedback.RampForceEffect", "void RampForceEffect.SetParameters(Vector3 startVector, Vector3 endVector, TimeSpan duration)");
 }
Beispiel #17
0
 public void SetParametersWithEnvelope(global::System.Numerics.Vector3 startVector, global::System.Numerics.Vector3 endVector, float attackGain, float sustainGain, float releaseGain, global::System.TimeSpan startDelay, global::System.TimeSpan attackDuration, global::System.TimeSpan sustainDuration, global::System.TimeSpan releaseDuration, uint repeatCount)
 {
     global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.Gaming.Input.ForceFeedback.RampForceEffect", "void RampForceEffect.SetParametersWithEnvelope(Vector3 startVector, Vector3 endVector, float attackGain, float sustainGain, float releaseGain, TimeSpan startDelay, TimeSpan attackDuration, TimeSpan sustainDuration, TimeSpan releaseDuration, uint repeatCount)");
 }
Beispiel #18
0
 public PerceptionCorrelation(string targetId, global::System.Numerics.Vector3 position, global::System.Numerics.Quaternion orientation)
 {
     global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.Devices.Perception.Provider.PerceptionCorrelation", "PerceptionCorrelation.PerceptionCorrelation(string targetId, Vector3 position, Quaternion orientation)");
 }
Beispiel #19
0
 public void SetVector3Parameter(string key, global::System.Numerics.Vector3 value)
 {
     global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.UI.Composition.CompositionAnimation", "void CompositionAnimation.SetVector3Parameter(string key, Vector3 value)");
 }
Beispiel #20
0
 public global::Windows.Perception.Spatial.SpatialLocatorAttachedFrameOfReference CreateAttachedFrameOfReferenceAtCurrentHeading(global::System.Numerics.Vector3 relativePosition, global::System.Numerics.Quaternion relativeOrientation)
 {
     throw new global::System.NotImplementedException("The member SpatialLocatorAttachedFrameOfReference SpatialLocator.CreateAttachedFrameOfReferenceAtCurrentHeading(Vector3 relativePosition, Quaternion relativeOrientation) is not implemented in Uno.");
 }
 public void InsertKeyFrame(float normalizedProgressKey, global::System.Numerics.Vector3 value, global::Windows.UI.Composition.CompositionEasingFunction easingFunction)
 {
     global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.UI.Composition.Vector3KeyFrameAnimation", "void Vector3KeyFrameAnimation.InsertKeyFrame(float normalizedProgressKey, Vector3 value, CompositionEasingFunction easingFunction)");
 }
Beispiel #22
0
 public global::Windows.Perception.Spatial.SpatialStationaryFrameOfReference CreateStationaryFrameOfReferenceAtCurrentLocation(global::System.Numerics.Vector3 relativePosition)
 {
     throw new global::System.NotImplementedException("The member SpatialStationaryFrameOfReference SpatialLocator.CreateStationaryFrameOfReferenceAtCurrentLocation(Vector3 relativePosition) is not implemented in Uno.");
 }
Beispiel #23
0
 public int TryUpdatePositionWithAdditionalVelocity(global::System.Numerics.Vector3 velocityInPixelsPerSecond)
 {
     throw new global::System.NotImplementedException("The member int InteractionTracker.TryUpdatePositionWithAdditionalVelocity(Vector3 velocityInPixelsPerSecond) is not implemented in Uno.");
 }
Beispiel #24
0
 public global::Windows.Perception.Spatial.SpatialStationaryFrameOfReference CreateStationaryFrameOfReferenceAtCurrentLocation(global::System.Numerics.Vector3 relativePosition, global::System.Numerics.Quaternion relativeOrientation, double relativeHeadingInRadians)
 {
     throw new global::System.NotImplementedException("The member SpatialStationaryFrameOfReference SpatialLocator.CreateStationaryFrameOfReferenceAtCurrentLocation(Vector3 relativePosition, Quaternion relativeOrientation, double relativeHeadingInRadians) is not implemented in Uno.");
 }
Beispiel #25
0
 public int TryUpdateScaleWithAnimation(global::Windows.UI.Composition.CompositionAnimation animation, global::System.Numerics.Vector3 centerPoint)
 {
     throw new global::System.NotImplementedException("The member int InteractionTracker.TryUpdateScaleWithAnimation(CompositionAnimation animation, Vector3 centerPoint) is not implemented in Uno.");
 }
Beispiel #26
0
 public void SetParameters(global::System.Numerics.Vector3 vector, float frequency, float phase, float bias, global::System.TimeSpan duration)
 {
     global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.Gaming.Input.ForceFeedback.PeriodicForceEffect", "void PeriodicForceEffect.SetParameters(Vector3 vector, float frequency, float phase, float bias, TimeSpan duration)");
 }
Beispiel #27
0
 public int TryUpdatePositionBy(global::System.Numerics.Vector3 amount, global::Windows.UI.Composition.Interactions.InteractionTrackerClampingOption option)
 {
     throw new global::System.NotImplementedException("The member int InteractionTracker.TryUpdatePositionBy(Vector3 amount, InteractionTrackerClampingOption option) is not implemented in Uno.");
 }
 public static global::Windows.Perception.Spatial.SpatialCoordinateSystem CreateCoordinateSystemForNode(global::System.Guid nodeId, global::System.Numerics.Vector3 relativePosition, global::System.Numerics.Quaternion relativeOrientation)
 {
     throw new global::System.NotImplementedException("The member SpatialCoordinateSystem SpatialGraphInteropPreview.CreateCoordinateSystemForNode(Guid nodeId, Vector3 relativePosition, Quaternion relativeOrientation) is not implemented in Uno.");
 }
 public void SetParameters(global::System.Numerics.Vector3 direction, float positiveCoefficient, float negativeCoefficient, float maxPositiveMagnitude, float maxNegativeMagnitude, float deadZone, float bias)
 {
     global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.Gaming.Input.ForceFeedback.ConditionForceEffect", "void ConditionForceEffect.SetParameters(Vector3 direction, float positiveCoefficient, float negativeCoefficient, float maxPositiveMagnitude, float maxNegativeMagnitude, float deadZone, float bias)");
 }
Beispiel #30
0
 public static global::Windows.Perception.Spatial.SpatialAnchor TryCreateRelativeTo(global::Windows.Perception.Spatial.SpatialCoordinateSystem coordinateSystem, global::System.Numerics.Vector3 position, global::System.Numerics.Quaternion orientation)
 {
     throw new global::System.NotImplementedException("The member SpatialAnchor SpatialAnchor.TryCreateRelativeTo(SpatialCoordinateSystem coordinateSystem, Vector3 position, Quaternion orientation) is not implemented in Uno.");
 }