Struct gdnative_visual_script::common::Geometry [−][src]
pub struct Geometry { /* fields omitted */ }core singleton class Geometry inherits Object (unsafe).
Official documentation
See the documentation of this class in the Godot engine's official documentation.
Feature flag
This type is behind the gdnative crate's common feature flag.
Class hierarchy
Geometry inherits methods from:
Methods
impl Geometry[src]
impl Geometrypub fn godot_singleton() -> Geometry[src]
pub fn godot_singleton() -> Geometrypub fn build_box_planes(
&mut self,
extents: TypedVector3D<f32, UnknownUnit>
) -> VariantArray[src]
pub fn build_box_planes(
&mut self,
extents: TypedVector3D<f32, UnknownUnit>
) -> VariantArraypub fn build_cylinder_planes(
&mut self,
radius: f64,
height: f64,
sides: i64,
axis: i64
) -> VariantArray[src]
pub fn build_cylinder_planes(
&mut self,
radius: f64,
height: f64,
sides: i64,
axis: i64
) -> VariantArraypub fn build_capsule_planes(
&mut self,
radius: f64,
height: f64,
sides: i64,
lats: i64,
axis: i64
) -> VariantArray[src]
pub fn build_capsule_planes(
&mut self,
radius: f64,
height: f64,
sides: i64,
lats: i64,
axis: i64
) -> VariantArraypub fn segment_intersects_circle(
&mut self,
segment_from: TypedVector2D<f32, UnknownUnit>,
segment_to: TypedVector2D<f32, UnknownUnit>,
circle_position: TypedVector2D<f32, UnknownUnit>,
circle_radius: f64
) -> f64[src]
pub fn segment_intersects_circle(
&mut self,
segment_from: TypedVector2D<f32, UnknownUnit>,
segment_to: TypedVector2D<f32, UnknownUnit>,
circle_position: TypedVector2D<f32, UnknownUnit>,
circle_radius: f64
) -> f64pub fn segment_intersects_segment_2d(
&mut self,
from_a: TypedVector2D<f32, UnknownUnit>,
to_a: TypedVector2D<f32, UnknownUnit>,
from_b: TypedVector2D<f32, UnknownUnit>,
to_b: TypedVector2D<f32, UnknownUnit>
) -> Variant[src]
pub fn segment_intersects_segment_2d(
&mut self,
from_a: TypedVector2D<f32, UnknownUnit>,
to_a: TypedVector2D<f32, UnknownUnit>,
from_b: TypedVector2D<f32, UnknownUnit>,
to_b: TypedVector2D<f32, UnknownUnit>
) -> Variantpub fn line_intersects_line_2d(
&mut self,
from_a: TypedVector2D<f32, UnknownUnit>,
dir_a: TypedVector2D<f32, UnknownUnit>,
from_b: TypedVector2D<f32, UnknownUnit>,
dir_b: TypedVector2D<f32, UnknownUnit>
) -> Variant[src]
pub fn line_intersects_line_2d(
&mut self,
from_a: TypedVector2D<f32, UnknownUnit>,
dir_a: TypedVector2D<f32, UnknownUnit>,
from_b: TypedVector2D<f32, UnknownUnit>,
dir_b: TypedVector2D<f32, UnknownUnit>
) -> Variantpub fn get_closest_points_between_segments_2d(
&mut self,
p1: TypedVector2D<f32, UnknownUnit>,
q1: TypedVector2D<f32, UnknownUnit>,
p2: TypedVector2D<f32, UnknownUnit>,
q2: TypedVector2D<f32, UnknownUnit>
) -> Vector2Array[src]
pub fn get_closest_points_between_segments_2d(
&mut self,
p1: TypedVector2D<f32, UnknownUnit>,
q1: TypedVector2D<f32, UnknownUnit>,
p2: TypedVector2D<f32, UnknownUnit>,
q2: TypedVector2D<f32, UnknownUnit>
) -> Vector2Arraypub fn get_closest_points_between_segments(
&mut self,
p1: TypedVector3D<f32, UnknownUnit>,
p2: TypedVector3D<f32, UnknownUnit>,
q1: TypedVector3D<f32, UnknownUnit>,
q2: TypedVector3D<f32, UnknownUnit>
) -> Vector3Array[src]
pub fn get_closest_points_between_segments(
&mut self,
p1: TypedVector3D<f32, UnknownUnit>,
p2: TypedVector3D<f32, UnknownUnit>,
q1: TypedVector3D<f32, UnknownUnit>,
q2: TypedVector3D<f32, UnknownUnit>
) -> Vector3Arraypub fn get_closest_point_to_segment_2d(
&mut self,
point: TypedVector2D<f32, UnknownUnit>,
s1: TypedVector2D<f32, UnknownUnit>,
s2: TypedVector2D<f32, UnknownUnit>
) -> TypedVector2D<f32, UnknownUnit>[src]
pub fn get_closest_point_to_segment_2d(
&mut self,
point: TypedVector2D<f32, UnknownUnit>,
s1: TypedVector2D<f32, UnknownUnit>,
s2: TypedVector2D<f32, UnknownUnit>
) -> TypedVector2D<f32, UnknownUnit>pub fn get_closest_point_to_segment(
&mut self,
point: TypedVector3D<f32, UnknownUnit>,
s1: TypedVector3D<f32, UnknownUnit>,
s2: TypedVector3D<f32, UnknownUnit>
) -> TypedVector3D<f32, UnknownUnit>[src]
pub fn get_closest_point_to_segment(
&mut self,
point: TypedVector3D<f32, UnknownUnit>,
s1: TypedVector3D<f32, UnknownUnit>,
s2: TypedVector3D<f32, UnknownUnit>
) -> TypedVector3D<f32, UnknownUnit>pub fn get_closest_point_to_segment_uncapped_2d(
&mut self,
point: TypedVector2D<f32, UnknownUnit>,
s1: TypedVector2D<f32, UnknownUnit>,
s2: TypedVector2D<f32, UnknownUnit>
) -> TypedVector2D<f32, UnknownUnit>[src]
pub fn get_closest_point_to_segment_uncapped_2d(
&mut self,
point: TypedVector2D<f32, UnknownUnit>,
s1: TypedVector2D<f32, UnknownUnit>,
s2: TypedVector2D<f32, UnknownUnit>
) -> TypedVector2D<f32, UnknownUnit>pub fn get_closest_point_to_segment_uncapped(
&mut self,
point: TypedVector3D<f32, UnknownUnit>,
s1: TypedVector3D<f32, UnknownUnit>,
s2: TypedVector3D<f32, UnknownUnit>
) -> TypedVector3D<f32, UnknownUnit>[src]
pub fn get_closest_point_to_segment_uncapped(
&mut self,
point: TypedVector3D<f32, UnknownUnit>,
s1: TypedVector3D<f32, UnknownUnit>,
s2: TypedVector3D<f32, UnknownUnit>
) -> TypedVector3D<f32, UnknownUnit>pub fn get_uv84_normal_bit(
&mut self,
normal: TypedVector3D<f32, UnknownUnit>
) -> i64[src]
pub fn get_uv84_normal_bit(
&mut self,
normal: TypedVector3D<f32, UnknownUnit>
) -> i64pub fn ray_intersects_triangle(
&mut self,
from: TypedVector3D<f32, UnknownUnit>,
dir: TypedVector3D<f32, UnknownUnit>,
a: TypedVector3D<f32, UnknownUnit>,
b: TypedVector3D<f32, UnknownUnit>,
c: TypedVector3D<f32, UnknownUnit>
) -> Variant[src]
pub fn ray_intersects_triangle(
&mut self,
from: TypedVector3D<f32, UnknownUnit>,
dir: TypedVector3D<f32, UnknownUnit>,
a: TypedVector3D<f32, UnknownUnit>,
b: TypedVector3D<f32, UnknownUnit>,
c: TypedVector3D<f32, UnknownUnit>
) -> Variantpub fn segment_intersects_triangle(
&mut self,
from: TypedVector3D<f32, UnknownUnit>,
to: TypedVector3D<f32, UnknownUnit>,
a: TypedVector3D<f32, UnknownUnit>,
b: TypedVector3D<f32, UnknownUnit>,
c: TypedVector3D<f32, UnknownUnit>
) -> Variant[src]
pub fn segment_intersects_triangle(
&mut self,
from: TypedVector3D<f32, UnknownUnit>,
to: TypedVector3D<f32, UnknownUnit>,
a: TypedVector3D<f32, UnknownUnit>,
b: TypedVector3D<f32, UnknownUnit>,
c: TypedVector3D<f32, UnknownUnit>
) -> Variantpub fn segment_intersects_sphere(
&mut self,
from: TypedVector3D<f32, UnknownUnit>,
to: TypedVector3D<f32, UnknownUnit>,
sphere_position: TypedVector3D<f32, UnknownUnit>,
sphere_radius: f64
) -> Vector3Array[src]
pub fn segment_intersects_sphere(
&mut self,
from: TypedVector3D<f32, UnknownUnit>,
to: TypedVector3D<f32, UnknownUnit>,
sphere_position: TypedVector3D<f32, UnknownUnit>,
sphere_radius: f64
) -> Vector3Arraypub fn segment_intersects_cylinder(
&mut self,
from: TypedVector3D<f32, UnknownUnit>,
to: TypedVector3D<f32, UnknownUnit>,
height: f64,
radius: f64
) -> Vector3Array[src]
pub fn segment_intersects_cylinder(
&mut self,
from: TypedVector3D<f32, UnknownUnit>,
to: TypedVector3D<f32, UnknownUnit>,
height: f64,
radius: f64
) -> Vector3Arraypub fn segment_intersects_convex(
&mut self,
from: TypedVector3D<f32, UnknownUnit>,
to: TypedVector3D<f32, UnknownUnit>,
planes: VariantArray
) -> Vector3Array[src]
pub fn segment_intersects_convex(
&mut self,
from: TypedVector3D<f32, UnknownUnit>,
to: TypedVector3D<f32, UnknownUnit>,
planes: VariantArray
) -> Vector3Arraypub fn point_is_inside_triangle(
&self,
point: TypedVector2D<f32, UnknownUnit>,
a: TypedVector2D<f32, UnknownUnit>,
b: TypedVector2D<f32, UnknownUnit>,
c: TypedVector2D<f32, UnknownUnit>
) -> bool[src]
pub fn point_is_inside_triangle(
&self,
point: TypedVector2D<f32, UnknownUnit>,
a: TypedVector2D<f32, UnknownUnit>,
b: TypedVector2D<f32, UnknownUnit>,
c: TypedVector2D<f32, UnknownUnit>
) -> boolpub fn triangulate_polygon(&mut self, polygon: Vector2Array) -> Int32Array[src]
pub fn triangulate_polygon(&mut self, polygon: Vector2Array) -> Int32Arraypub fn convex_hull_2d(&mut self, points: Vector2Array) -> Vector2Array[src]
pub fn convex_hull_2d(&mut self, points: Vector2Array) -> Vector2Arraypub fn clip_polygon(
&mut self,
points: Vector3Array,
plane: Plane
) -> Vector3Array[src]
pub fn clip_polygon(
&mut self,
points: Vector3Array,
plane: Plane
) -> Vector3Arraypub fn make_atlas(&mut self, sizes: Vector2Array) -> Dictionary[src]
pub fn make_atlas(&mut self, sizes: Vector2Array) -> Dictionarypub fn _notification(&mut self, what: i64)[src]
pub fn _notification(&mut self, what: i64)Inherited from Object.
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool[src]
pub fn _set(&mut self, property: GodotString, value: Variant) -> boolInherited from Object.
pub fn _get(&mut self, property: GodotString) -> Variant[src]
pub fn _get(&mut self, property: GodotString) -> VariantInherited from Object.
pub fn _get_property_list(&mut self) -> VariantArray[src]
pub fn _get_property_list(&mut self) -> VariantArrayInherited from Object.
pub fn _init(&mut self)[src]
pub fn _init(&mut self)Inherited from Object.
pub fn get_class(&self) -> GodotString[src]
pub fn get_class(&self) -> GodotStringInherited from Object.
pub fn is_class(&self, _type: GodotString) -> bool[src]
pub fn is_class(&self, _type: GodotString) -> boolInherited from Object.
pub fn set(&mut self, property: GodotString, value: Variant)[src]
pub fn set(&mut self, property: GodotString, value: Variant)Inherited from Object.
pub fn get(&self, property: GodotString) -> Variant[src]
pub fn get(&self, property: GodotString) -> VariantInherited from Object.
pub fn set_indexed(&mut self, property: NodePath, value: Variant)[src]
pub fn set_indexed(&mut self, property: NodePath, value: Variant)Inherited from Object.
pub fn get_indexed(&self, property: NodePath) -> Variant[src]
pub fn get_indexed(&self, property: NodePath) -> VariantInherited from Object.
pub fn get_property_list(&self) -> VariantArray[src]
pub fn get_property_list(&self) -> VariantArrayInherited from Object.
pub fn get_method_list(&self) -> VariantArray[src]
pub fn get_method_list(&self) -> VariantArrayInherited from Object.
pub fn notification(&mut self, what: i64, reversed: bool)[src]
pub fn notification(&mut self, what: i64, reversed: bool)Inherited from Object.
pub fn get_instance_id(&self) -> i64[src]
pub fn get_instance_id(&self) -> i64Inherited from Object.
pub fn set_script(&mut self, script: Option<Reference>)[src]
pub fn set_script(&mut self, script: Option<Reference>)Inherited from Object.
pub fn get_script(&self) -> Option<Reference>[src]
pub fn get_script(&self) -> Option<Reference>Inherited from Object.
pub fn set_meta(&mut self, name: GodotString, value: Variant)[src]
pub fn set_meta(&mut self, name: GodotString, value: Variant)Inherited from Object.
pub fn get_meta(&self, name: GodotString) -> Variant[src]
pub fn get_meta(&self, name: GodotString) -> VariantInherited from Object.
pub fn has_meta(&self, name: GodotString) -> bool[src]
pub fn has_meta(&self, name: GodotString) -> boolInherited from Object.
pub fn get_meta_list(&self) -> StringArray[src]
pub fn get_meta_list(&self) -> StringArrayInherited from Object.
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray)[src]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray)Inherited from Object.
pub fn has_user_signal(&self, signal: GodotString) -> bool[src]
pub fn has_user_signal(&self, signal: GodotString) -> boolInherited from Object.
pub fn emit_signal(
&mut self,
signal: GodotString,
varargs: &[Variant]
) -> Variant[src]
pub fn emit_signal(
&mut self,
signal: GodotString,
varargs: &[Variant]
) -> VariantInherited from Object.
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant[src]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> VariantInherited from Object.
pub fn call_deferred(
&mut self,
method: GodotString,
varargs: &[Variant]
) -> Variant[src]
pub fn call_deferred(
&mut self,
method: GodotString,
varargs: &[Variant]
) -> VariantInherited from Object.
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant[src]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> VariantInherited from Object.
pub fn has_method(&self, method: GodotString) -> bool[src]
pub fn has_method(&self, method: GodotString) -> boolInherited from Object.
pub fn get_signal_list(&self) -> VariantArray[src]
pub fn get_signal_list(&self) -> VariantArrayInherited from Object.
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray[src]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArrayInherited from Object.
pub fn get_incoming_connections(&self) -> VariantArray[src]
pub fn get_incoming_connections(&self) -> VariantArrayInherited from Object.
pub fn connect(
&mut self,
signal: GodotString,
target: Option<Object>,
method: GodotString,
binds: VariantArray,
flags: i64
) -> Result<(), GodotError>[src]
pub fn connect(
&mut self,
signal: GodotString,
target: Option<Object>,
method: GodotString,
binds: VariantArray,
flags: i64
) -> Result<(), GodotError>Inherited from Object.
pub fn disconnect(
&mut self,
signal: GodotString,
target: Option<Object>,
method: GodotString
)[src]
pub fn disconnect(
&mut self,
signal: GodotString,
target: Option<Object>,
method: GodotString
)Inherited from Object.
pub fn is_connected(
&self,
signal: GodotString,
target: Option<Object>,
method: GodotString
) -> bool[src]
pub fn is_connected(
&self,
signal: GodotString,
target: Option<Object>,
method: GodotString
) -> boolInherited from Object.
pub fn set_block_signals(&mut self, enable: bool)[src]
pub fn set_block_signals(&mut self, enable: bool)Inherited from Object.
pub fn is_blocking_signals(&self) -> bool[src]
pub fn is_blocking_signals(&self) -> boolInherited from Object.
pub fn property_list_changed_notify(&mut self)[src]
pub fn property_list_changed_notify(&mut self)Inherited from Object.
pub fn set_message_translation(&mut self, enable: bool)[src]
pub fn set_message_translation(&mut self, enable: bool)Inherited from Object.
pub fn can_translate_messages(&self) -> bool[src]
pub fn can_translate_messages(&self) -> boolInherited from Object.
pub fn tr(&self, message: GodotString) -> GodotString[src]
pub fn tr(&self, message: GodotString) -> GodotStringInherited from Object.
pub fn is_queued_for_deletion(&self) -> bool[src]
pub fn is_queued_for_deletion(&self) -> boolInherited from Object.
pub fn to_object(&self) -> Object[src]
pub fn to_object(&self) -> ObjectUp-cast.
pub fn cast<T>(&self) -> Option<T> where
T: GodotObject, [src]
pub fn cast<T>(&self) -> Option<T> where
T: GodotObject, Generic dynamic cast.
Trait Implementations
impl GodotObject for Geometry[src]
impl GodotObject for Geometryfn class_name() -> &'static str[src]
fn class_name() -> &'static strunsafe fn from_sys(obj: *mut c_void) -> Geometry[src]
unsafe fn from_sys(obj: *mut c_void) -> Geometryunsafe fn to_sys(&self) -> *mut c_void[src]
unsafe fn to_sys(&self) -> *mut c_voidimpl Clone for Geometry[src]
impl Clone for Geometryfn clone(&self) -> Geometry[src]
fn clone(&self) -> GeometryReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl ToVariant for Geometry[src]
impl ToVariant for Geometryfn to_variant(&self) -> Variant[src]
fn to_variant(&self) -> Variantfn from_variant(variant: &Variant) -> Option<Geometry>[src]
fn from_variant(variant: &Variant) -> Option<Geometry>impl Debug for Geometry[src]
impl Debug for Geometryfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Copy for Geometry[src]
impl Copy for Geometry