| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377 |
- // WARNING - AUTOGENERATED - DO NOT EDIT
- //
- // Generated using `sharpie urho`
- //
- // Sphere.cs
- //
- // Copyright 2015 Xamarin Inc. All rights reserved.
- using System;
- using System.Runtime.InteropServices;
- using System.Collections.Generic;
- using Urho.Urho2D;
- using Urho.Gui;
- using Urho.Resources;
- using Urho.IO;
- using Urho.Navigation;
- using Urho.Network;
- namespace Urho
- {
- /// <summary>
- /// %Sphere in three-dimensional space.
- /// </summary>
- public unsafe partial class SphereShape
- {
- private IntPtr handle;
- public IntPtr Handle {
- get {
- return handle;
- }
- }
- unsafe partial void OnSphereCreated ();
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern IntPtr Sphere_Sphere ();
- [Preserve]
- public SphereShape ()
- {
- Runtime.Validate (typeof(SphereShape));
- handle = Sphere_Sphere ();
- OnSphereCreated ();
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern IntPtr Sphere_Sphere0 (IntPtr sphere);
- [Preserve]
- public SphereShape (SphereShape sphere)
- {
- Runtime.Validate (typeof(SphereShape));
- handle = Sphere_Sphere0 ((object)sphere == null ? IntPtr.Zero : sphere.Handle);
- OnSphereCreated ();
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern IntPtr Sphere_Sphere1 (ref Urho.Vector3 center, float radius);
- [Preserve]
- public SphereShape (Urho.Vector3 center, float radius)
- {
- Runtime.Validate (typeof(SphereShape));
- handle = Sphere_Sphere1 (ref center, radius);
- OnSphereCreated ();
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern IntPtr Sphere_Sphere2 (Vector3* vertices, uint count);
- [Preserve]
- public SphereShape (Vector3* vertices, uint count)
- {
- Runtime.Validate (typeof(SphereShape));
- handle = Sphere_Sphere2 (vertices, count);
- OnSphereCreated ();
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern IntPtr Sphere_Sphere3 (ref Urho.BoundingBox box);
- [Preserve]
- public SphereShape (Urho.BoundingBox box)
- {
- Runtime.Validate (typeof(SphereShape));
- handle = Sphere_Sphere3 (ref box);
- OnSphereCreated ();
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern IntPtr Sphere_Sphere4 (IntPtr frustum);
- [Preserve]
- public SphereShape (Frustum frustum)
- {
- Runtime.Validate (typeof(SphereShape));
- handle = Sphere_Sphere4 ((object)frustum == null ? IntPtr.Zero : frustum.Handle);
- OnSphereCreated ();
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern IntPtr Sphere_Sphere5 (IntPtr poly);
- [Preserve]
- public SphereShape (Polyhedron poly)
- {
- Runtime.Validate (typeof(SphereShape));
- handle = Sphere_Sphere5 ((object)poly == null ? IntPtr.Zero : poly.Handle);
- OnSphereCreated ();
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void Sphere_Define (IntPtr handle, IntPtr sphere);
- /// <summary>
- /// Define from another sphere.
- /// </summary>
- public void Define (SphereShape sphere)
- {
- Runtime.ValidateObject (this);
- Sphere_Define (handle, (object)sphere == null ? IntPtr.Zero : sphere.Handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void Sphere_Define6 (IntPtr handle, ref Urho.Vector3 center, float radius);
- /// <summary>
- /// Define from center and radius.
- /// </summary>
- public void Define (Urho.Vector3 center, float radius)
- {
- Runtime.ValidateObject (this);
- Sphere_Define6 (handle, ref center, radius);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void Sphere_Define7 (IntPtr handle, Vector3* vertices, uint count);
- /// <summary>
- /// Define from an array of vertices.
- /// </summary>
- public void Define (Vector3* vertices, uint count)
- {
- Runtime.ValidateObject (this);
- Sphere_Define7 (handle, vertices, count);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void Sphere_Define8 (IntPtr handle, ref Urho.BoundingBox box);
- /// <summary>
- /// Define from a bounding box.
- /// </summary>
- public void Define (Urho.BoundingBox box)
- {
- Runtime.ValidateObject (this);
- Sphere_Define8 (handle, ref box);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void Sphere_Define9 (IntPtr handle, IntPtr frustum);
- /// <summary>
- /// Define from a frustum.
- /// </summary>
- public void Define (Frustum frustum)
- {
- Runtime.ValidateObject (this);
- Sphere_Define9 (handle, (object)frustum == null ? IntPtr.Zero : frustum.Handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void Sphere_Define10 (IntPtr handle, IntPtr poly);
- /// <summary>
- /// Define from a polyhedron.
- /// </summary>
- public void Define (Polyhedron poly)
- {
- Runtime.ValidateObject (this);
- Sphere_Define10 (handle, (object)poly == null ? IntPtr.Zero : poly.Handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void Sphere_Merge (IntPtr handle, ref Urho.Vector3 point);
- /// <summary>
- /// Merge a point.
- /// </summary>
- public void Merge (Urho.Vector3 point)
- {
- Runtime.ValidateObject (this);
- Sphere_Merge (handle, ref point);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void Sphere_Merge11 (IntPtr handle, Vector3* vertices, uint count);
- /// <summary>
- /// Merge an array of vertices.
- /// </summary>
- public void Merge (Vector3* vertices, uint count)
- {
- Runtime.ValidateObject (this);
- Sphere_Merge11 (handle, vertices, count);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void Sphere_Merge12 (IntPtr handle, ref Urho.BoundingBox box);
- /// <summary>
- /// Merge a bounding box.
- /// </summary>
- public void Merge (Urho.BoundingBox box)
- {
- Runtime.ValidateObject (this);
- Sphere_Merge12 (handle, ref box);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void Sphere_Merge13 (IntPtr handle, IntPtr frustum);
- /// <summary>
- /// Merge a frustum.
- /// </summary>
- public void Merge (Frustum frustum)
- {
- Runtime.ValidateObject (this);
- Sphere_Merge13 (handle, (object)frustum == null ? IntPtr.Zero : frustum.Handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void Sphere_Merge14 (IntPtr handle, IntPtr poly);
- /// <summary>
- /// Merge a polyhedron.
- /// </summary>
- public void Merge (Polyhedron poly)
- {
- Runtime.ValidateObject (this);
- Sphere_Merge14 (handle, (object)poly == null ? IntPtr.Zero : poly.Handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void Sphere_Merge15 (IntPtr handle, IntPtr sphere);
- /// <summary>
- /// Merge a sphere.
- /// </summary>
- public void Merge (SphereShape sphere)
- {
- Runtime.ValidateObject (this);
- Sphere_Merge15 (handle, (object)sphere == null ? IntPtr.Zero : sphere.Handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void Sphere_Clear (IntPtr handle);
- /// <summary>
- /// Clear to undefined state.
- /// </summary>
- public void Clear ()
- {
- Runtime.ValidateObject (this);
- Sphere_Clear (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool Sphere_Defined (IntPtr handle);
- /// <summary>
- /// Return true if this sphere is defined via a previous call to Define() or Merge().
- /// </summary>
- public bool Defined ()
- {
- Runtime.ValidateObject (this);
- return Sphere_Defined (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern Intersection Sphere_IsInside (IntPtr handle, ref Urho.Vector3 point);
- /// <summary>
- /// Test if a point is inside.
- /// </summary>
- public Intersection IsInside (Urho.Vector3 point)
- {
- Runtime.ValidateObject (this);
- return Sphere_IsInside (handle, ref point);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern Intersection Sphere_IsInside16 (IntPtr handle, IntPtr sphere);
- /// <summary>
- /// Test if another sphere is inside, outside or intersects.
- /// </summary>
- public Intersection IsInside (SphereShape sphere)
- {
- Runtime.ValidateObject (this);
- return Sphere_IsInside16 (handle, (object)sphere == null ? IntPtr.Zero : sphere.Handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern Intersection Sphere_IsInsideFast (IntPtr handle, IntPtr sphere);
- /// <summary>
- /// Test if another sphere is (partially) inside or outside.
- /// </summary>
- public Intersection IsInsideFast (SphereShape sphere)
- {
- Runtime.ValidateObject (this);
- return Sphere_IsInsideFast (handle, (object)sphere == null ? IntPtr.Zero : sphere.Handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern Intersection Sphere_IsInside17 (IntPtr handle, ref Urho.BoundingBox box);
- /// <summary>
- /// Test if a bounding box is inside, outside or intersects.
- /// </summary>
- public Intersection IsInside (Urho.BoundingBox box)
- {
- Runtime.ValidateObject (this);
- return Sphere_IsInside17 (handle, ref box);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern Intersection Sphere_IsInsideFast18 (IntPtr handle, ref Urho.BoundingBox box);
- /// <summary>
- /// Test if a bounding box is (partially) inside or outside.
- /// </summary>
- public Intersection IsInsideFast (Urho.BoundingBox box)
- {
- Runtime.ValidateObject (this);
- return Sphere_IsInsideFast18 (handle, ref box);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern float Sphere_Distance (IntPtr handle, ref Urho.Vector3 point);
- /// <summary>
- /// Return distance of a point to the surface, or 0 if inside.
- /// </summary>
- public float Distance (Urho.Vector3 point)
- {
- Runtime.ValidateObject (this);
- return Sphere_Distance (handle, ref point);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern Vector3 Sphere_GetLocalPoint (IntPtr handle, float theta, float phi);
- /// <summary>
- /// Return point on the sphere relative to sphere position.
- /// </summary>
- public Vector3 GetLocalPoint (float theta, float phi)
- {
- Runtime.ValidateObject (this);
- return Sphere_GetLocalPoint (handle, theta, phi);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern Vector3 Sphere_GetPoint (IntPtr handle, float theta, float phi);
- /// <summary>
- /// Return point on the sphere.
- /// </summary>
- public Vector3 GetPoint (float theta, float phi)
- {
- Runtime.ValidateObject (this);
- return Sphere_GetPoint (handle, theta, phi);
- }
- }
- }
|