Class Vec2
public class Vec2
- Inheritance
-
Vec2
- Inherited Members
Methods
Alloc()
Calls native constructor graphene_vec2_alloc. Version: 1.0
[Version("1.0")]
public static extern Vec2OwnedHandle Alloc()
Returns
- Vec2OwnedHandle
Transfer ownership: Full Nullable: False
Dot(Vec2Handle, Vec2Handle)
Calls native method graphene_vec2_dot. Version: 1.0
[Version("1.0")]
public static extern float Dot(Vec2Handle a, Vec2Handle b)
Parameters
a
Vec2HandleTransfer ownership: None Nullable: False
b
Vec2HandleTransfer ownership: None Nullable: False
Returns
- float
Transfer ownership: None Nullable: False
Equal(Vec2Handle, Vec2Handle)
Calls native method graphene_vec2_equal. Version: 1.2
[Version("1.2")]
public static extern bool Equal(Vec2Handle v1, Vec2Handle v2)
Parameters
v1
Vec2HandleTransfer ownership: None Nullable: False
v2
Vec2HandleTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
Free(Vec2Handle)
Calls native method graphene_vec2_free. Version: 1.0
[Version("1.0")]
public static extern void Free(Vec2Handle v)
Parameters
v
Vec2HandleTransfer ownership: None Nullable: False
GetGType()
Calls native function graphene_vec2_get_type.
public static extern nuint GetGType()
Returns
- nuint
Transfer ownership: None Nullable: False
GetX(Vec2Handle)
Calls native method graphene_vec2_get_x. Version: 1.0
[Version("1.0")]
public static extern float GetX(Vec2Handle v)
Parameters
v
Vec2HandleTransfer ownership: None Nullable: False
Returns
- float
Transfer ownership: None Nullable: False
GetY(Vec2Handle)
Calls native method graphene_vec2_get_y. Version: 1.0
[Version("1.0")]
public static extern float GetY(Vec2Handle v)
Parameters
v
Vec2HandleTransfer ownership: None Nullable: False
Returns
- float
Transfer ownership: None Nullable: False
Init(Vec2Handle, float, float)
Calls native method graphene_vec2_init. Version: 1.0
[Version("1.0")]
public static extern Vec2UnownedHandle Init(Vec2Handle v, float x, float y)
Parameters
v
Vec2HandleTransfer ownership: None Nullable: False
x
floatTransfer ownership: None Nullable: False
y
floatTransfer ownership: None Nullable: False
Returns
- Vec2UnownedHandle
Transfer ownership: None Nullable: False
InitFromFloat(Vec2Handle, ref float)
Calls native method graphene_vec2_init_from_float. Version: 1.0
[Version("1.0")]
public static extern Vec2UnownedHandle InitFromFloat(Vec2Handle v, ref float src)
Parameters
v
Vec2HandleTransfer ownership: None Nullable: False
src
floatTransfer ownership: None Nullable: False
Returns
- Vec2UnownedHandle
Transfer ownership: None Nullable: False
InitFromVec2(Vec2Handle, Vec2Handle)
Calls native method graphene_vec2_init_from_vec2. Version: 1.0
[Version("1.0")]
public static extern Vec2UnownedHandle InitFromVec2(Vec2Handle v, Vec2Handle src)
Parameters
v
Vec2HandleTransfer ownership: None Nullable: False
src
Vec2HandleTransfer ownership: None Nullable: False
Returns
- Vec2UnownedHandle
Transfer ownership: None Nullable: False
Length(Vec2Handle)
Calls native method graphene_vec2_length. Version: 1.0
[Version("1.0")]
public static extern float Length(Vec2Handle v)
Parameters
v
Vec2HandleTransfer ownership: None Nullable: False
Returns
- float
Transfer ownership: None Nullable: False
Near(Vec2Handle, Vec2Handle, float)
Calls native method graphene_vec2_near. Version: 1.2
[Version("1.2")]
public static extern bool Near(Vec2Handle v1, Vec2Handle v2, float epsilon)
Parameters
v1
Vec2HandleTransfer ownership: None Nullable: False
v2
Vec2HandleTransfer ownership: None Nullable: False
epsilon
floatTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
One()
Calls native function graphene_vec2_one. Version: 1.0
[Version("1.0")]
public static extern Vec2UnownedHandle One()
Returns
- Vec2UnownedHandle
Transfer ownership: None Nullable: False
ToFloat(Vec2Handle, ref float)
Calls native method graphene_vec2_to_float. Version: 1.0
[Version("1.0")]
public static extern void ToFloat(Vec2Handle v, ref float dest)
Parameters
v
Vec2HandleTransfer ownership: None Nullable: False
dest
floatTransfer ownership: None Nullable: False
XAxis()
Calls native function graphene_vec2_x_axis. Version: 1.0
[Version("1.0")]
public static extern Vec2UnownedHandle XAxis()
Returns
- Vec2UnownedHandle
Transfer ownership: None Nullable: False
YAxis()
Calls native function graphene_vec2_y_axis. Version: 1.0
[Version("1.0")]
public static extern Vec2UnownedHandle YAxis()
Returns
- Vec2UnownedHandle
Transfer ownership: None Nullable: False
Zero()
Calls native function graphene_vec2_zero. Version: 1.0
[Version("1.0")]
public static extern Vec2UnownedHandle Zero()
Returns
- Vec2UnownedHandle
Transfer ownership: None Nullable: False