CurveObject
object type10 methodsavailable in: camelot
It has every method of CurveObjectBase, plus 10 of its own.
Inherits from
- CurveObject · 10
- CurveObjectBase · 3
The number is each type's own documented methods. A CurveObject has all of them.
Methods
In the emulator: 10 implemented.
| method | what it does | status |
|---|---|---|
AddPoint | Adds a single point to the curve. · warcraft.wiki.gg ↗(pointX: number, pointY: number) | implemented |
ClearPoints | Removes all points from the curve. Evaluating an empty curve always yields a zero value. · warcraft.wiki.gg ↗() | implemented |
Copy | Returns a new copy of this curve. · warcraft.wiki.gg ↗(): LuaCurveObject | implemented |
Evaluate | Returns a calculated 'y' value from the configured curve points. · warcraft.wiki.gg ↗(x: number): number | implemented |
GetPoint | Returns the vector for an individual point index on the curve. · warcraft.wiki.gg ↗(index: number): Vector2DMixin? | implemented |
GetPointCount | Returns the total number of points on the curve. · warcraft.wiki.gg ↗(): size | implemented |
GetPoints | Returns the vectors for all points on the curve. · warcraft.wiki.gg ↗(): vector2[] | implemented |
RemovePoint | Removes a single point from the curve. Raises an error if the supplied point index is out of range. · warcraft.wiki.gg ↗(index: number) | implemented |
SetPoints | Replaces all points on the curve. · warcraft.wiki.gg ↗(point: vector2[]) | implemented |
SetToDefaults | Resets all state on the curve, and clears the secret values flag. · warcraft.wiki.gg ↗() | implemented |
sources
Methods and inheritance: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗.