This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Lighting
Landscape Tool
Sandworm
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Built-in Node Types
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
Content Creation
Content Optimization
Materials
Art Samples
Tutorials

Unigine.Math2d Struct.

Notice
The functions listed below are the members of the Unigine.MathLib namespace.

Math2d Class

Members


bool SetPolygonToCCW ( List<vec2> points ) #

Arguments

Return value

Return value.

void TriangulatePolygon ( List<vec2> points, List<ushort> indices, bool append_to_result ) #

Arguments

  • List<vec2> points
  • List<ushort> indices
  • bool append_to_result

void ResizePolygon ( List<vec2> points, float offset, List<vec2> result_points, bool append_to_result ) #

Arguments

  • List<vec2> points
  • float offset
  • List<vec2> result_points
  • bool append_to_result

void FindIntersection ( vec2 p1, vec2 p2, vec2 p3, vec2 p4, bool lines_intersect, bool segments_intersect, vec2 intersection, vec2 close_p1, vec2 close_p2 ) #

Arguments

bool PolygonIsOrientedClockwise ( List<vec2> points ) #

Arguments

Return value

Return value.

float GetPolygonAreaSigned ( List<vec2> points ) #

Arguments

Return value

Resulting float value.

float GetPolygonArea ( List<vec2> points ) #

Arguments

Return value

Resulting float value.

float GetTriangleArea ( vec2 p1, vec2 p2, vec2 p3 ) #

Arguments

Return value

Resulting float value.

float Sign ( vec2 point, vec2 segment_p1, vec2 segment_p2 ) #

Returns an integral value indicating the sign of an argument.

Arguments

Return value

Resulting float value.

bool PointTriangleInside ( vec2 point, vec2 v0, vec2 v1, vec2 v2 ) #

Checks if a point is inside a triangle.

Arguments

Return value

Return value.
Last update: 2021-06-16
Build: ()