-
-
Save Metapyziks/4261a9a818c8798bc472 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This file defines the JavaScript bindings for GameAPI.Vector2f. | |
* Please do not manually edit this tool-generated file. | |
*/ | |
namespace GameAPI.Bindings | |
{ | |
public sealed class Vector2f_Bindings | |
: Jurassic.Library.ObjectInstance, Jurassic.IStructInstance<GameAPI.Vector2f> | |
{ | |
#region Conversions | |
public static implicit operator GameAPI.Bindings.Vector2i_Bindings(GameAPI.Bindings.Vector2f_Bindings val) | |
{ | |
return new GameAPI.Bindings.Vector2i_Bindings((GameAPI.Vector2i) val.Struct, val.Engine); | |
} | |
#endregion Conversions | |
#region Properties | |
private GameAPI.Vector2f _struct; | |
public GameAPI.Vector2f Struct { get { return _struct; } } | |
[Jurassic.Library.JSPropertyAttribute(Name="x")] | |
public System.Double X | |
{ | |
get { return (System.Double) _struct.X; } | |
set { _struct.X = (System.Single) value; } | |
} | |
[Jurassic.Library.JSPropertyAttribute(Name="y")] | |
public System.Double Y | |
{ | |
get { return (System.Double) _struct.Y; } | |
set { _struct.Y = (System.Single) value; } | |
} | |
[Jurassic.Library.JSPropertyAttribute(Name="length")] | |
public System.Double Length | |
{ | |
get { return (System.Double) _struct.Length; } | |
} | |
[Jurassic.Library.JSPropertyAttribute(Name="lengthSquared")] | |
public System.Double LengthSquared | |
{ | |
get { return (System.Double) _struct.LengthSquared; } | |
} | |
[Jurassic.Library.JSPropertyAttribute(Name="normalized")] | |
public GameAPI.Bindings.Vector2f_Bindings Normalized | |
{ | |
get { return new GameAPI.Bindings.Vector2f_Bindings(_struct.Normalized, Engine); } | |
} | |
[Jurassic.Library.JSPropertyAttribute(Name="angle")] | |
public System.Double Angle | |
{ | |
get { return (System.Double) _struct.Angle; } | |
} | |
#endregion Properties | |
public Vector2f_Bindings(GameAPI.Vector2f @struct, Jurassic.ScriptEngine engine) | |
: base(engine) | |
{ | |
_struct = @struct; | |
PopulateFunctions(); | |
} | |
public Vector2f_Bindings(GameAPI.Vector2f @struct, Jurassic.Library.ObjectInstance prototype) | |
: base(prototype) | |
{ | |
_struct = @struct; | |
PopulateFunctions(); | |
} | |
#region Methods | |
[Jurassic.Library.JSFunctionAttribute(Name="add")] | |
public GameAPI.Bindings.Vector2f_Bindings Addition(GameAPI.Bindings.Vector2f_Bindings b) | |
{ | |
return new GameAPI.Bindings.Vector2f_Bindings((_struct + b.Struct), Engine); | |
} | |
[Jurassic.Library.JSFunctionAttribute(Name="sub")] | |
public GameAPI.Bindings.Vector2f_Bindings Subtraction(GameAPI.Bindings.Vector2f_Bindings b) | |
{ | |
return new GameAPI.Bindings.Vector2f_Bindings((_struct - b.Struct), Engine); | |
} | |
[Jurassic.Library.JSFunctionAttribute(Name="mulVec")] | |
public GameAPI.Bindings.Vector2f_Bindings Multiply(GameAPI.Bindings.Vector2f_Bindings b) | |
{ | |
return new GameAPI.Bindings.Vector2f_Bindings((_struct * b.Struct), Engine); | |
} | |
[Jurassic.Library.JSFunctionAttribute(Name="mul")] | |
public GameAPI.Bindings.Vector2f_Bindings Multiply(System.Double val) | |
{ | |
return new GameAPI.Bindings.Vector2f_Bindings((_struct * (System.Single) val), Engine); | |
} | |
[Jurassic.Library.JSFunctionAttribute(Name="divVec")] | |
public GameAPI.Bindings.Vector2f_Bindings Division(GameAPI.Bindings.Vector2f_Bindings b) | |
{ | |
return new GameAPI.Bindings.Vector2f_Bindings((_struct / b.Struct), Engine); | |
} | |
[Jurassic.Library.JSFunctionAttribute(Name="div")] | |
public GameAPI.Bindings.Vector2f_Bindings Division(System.Double val) | |
{ | |
return new GameAPI.Bindings.Vector2f_Bindings((_struct / (System.Single) val), Engine); | |
} | |
[Jurassic.Library.JSFunctionAttribute(Name="dot")] | |
public System.Double Dot(GameAPI.Bindings.Vector2f_Bindings vec) | |
{ | |
return (System.Double) _struct.Dot(vec.Struct); | |
} | |
[Jurassic.Library.JSFunctionAttribute(Name="equals")] | |
public System.Boolean Equals(GameAPI.Bindings.Vector2f_Bindings vec) | |
{ | |
return _struct.Equals(vec.Struct); | |
} | |
[Jurassic.Library.JSFunctionAttribute(Name="toString")] | |
public override System.String ToString() | |
{ | |
return _struct.ToString(); | |
} | |
#endregion Methods | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This file defines the JavaScript bindings for GameAPI.Vector2f. | |
* Please do not manually edit this tool-generated file. | |
*/ | |
namespace GameAPI.Bindings | |
{ | |
[Jurassic.Library.JSStaticClassAttribute("Vector2f")] | |
public sealed class Vector2f_StaticBindings | |
: Jurassic.Library.ObjectInstance | |
{ | |
#region Properties | |
[Jurassic.Library.JSPropertyAttribute(Name="ZERO")] | |
public GameAPI.Bindings.Vector2f_Bindings Zero | |
{ | |
get { return new GameAPI.Bindings.Vector2f_Bindings(GameAPI.Vector2f.Zero, Engine); } | |
} | |
[Jurassic.Library.JSPropertyAttribute(Name="UNIT_X")] | |
public GameAPI.Bindings.Vector2f_Bindings UnitX | |
{ | |
get { return new GameAPI.Bindings.Vector2f_Bindings(GameAPI.Vector2f.UnitX, Engine); } | |
} | |
[Jurassic.Library.JSPropertyAttribute(Name="UNIT_Y")] | |
public GameAPI.Bindings.Vector2f_Bindings UnitY | |
{ | |
get { return new GameAPI.Bindings.Vector2f_Bindings(GameAPI.Vector2f.UnitY, Engine); } | |
} | |
#endregion Properties | |
public Vector2f_StaticBindings(Jurassic.ScriptEngine engine) | |
: base(engine) | |
{ | |
PopulateFunctions(); | |
} | |
#region Methods | |
[Jurassic.Library.JSFunctionAttribute(Name="fromAngle")] | |
public GameAPI.Bindings.Vector2f_Bindings FromAngle(System.Double radians) | |
{ | |
return new GameAPI.Bindings.Vector2f_Bindings(GameAPI.Vector2f.FromAngle((System.Single) radians), Engine); | |
} | |
[Jurassic.Library.JSFunctionAttribute(Name="new")] | |
public GameAPI.Bindings.Vector2f_Bindings New(System.Double x, System.Double y) | |
{ | |
return new GameAPI.Bindings.Vector2f_Bindings(GameAPI.Vector2f.New((System.Single) x, (System.Single) y), Engine); | |
} | |
#endregion Methods | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment