feat: add initial People Playground mod development kit
This commit is contained in:
39
extracted_wiki_content/internalReference/linesegment.txt
Normal file
39
extracted_wiki_content/internalReference/linesegment.txt
Normal file
@@ -0,0 +1,39 @@
|
||||
URL: https://wiki.studiominus.nl/internalReference/LineSegment.html
|
||||
Title: People Playground Modding - LineSegment
|
||||
==================================================
|
||||
|
||||
public struct LineSegment
|
||||
Inherits System.IEquatable<LineSegment>
|
||||
[System.Serializable]
|
||||
A 2D line segment
|
||||
Fields
|
||||
public Vector2 A
|
||||
First point
|
||||
|
||||
public Vector2 B
|
||||
Second point
|
||||
|
||||
Methods
|
||||
public (constructor) LineSegment(Vector2 a, Vector2 b)
|
||||
No description provided
|
||||
|
||||
public readonly Vector2 GetRandomPoint()
|
||||
Get random point on line segment
|
||||
|
||||
public readonly Vector2 GetPointAlong(float progress)
|
||||
Get point along the segment from A to B (just lerps from A to B by given value)
|
||||
|
||||
public readonly Vector2 GetMidpoint()
|
||||
Get middle point on line segment
|
||||
|
||||
public readonly float GetDistance(Vector2 point)
|
||||
Get distance to given point
|
||||
|
||||
public override bool Equals(object obj)
|
||||
No description provided
|
||||
|
||||
public bool Equals(LineSegment other)
|
||||
No description provided
|
||||
|
||||
public override int GetHashCode()
|
||||
No description provided
|
||||
Reference in New Issue
Block a user