Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
documentation:splines:api [2017/02/16 07:58]
Jake [API]
documentation:splines:api [2020/05/16 17:21] (current)
Line 2: Line 2:
 <note important>​Did you read the [[../​apigeneral]]?</​note>​ <note important>​Did you read the [[../​apigeneral]]?</​note>​
  
-The complete API reference can be found [[http://api.fluffyunderware.com/curvy210|here]], this is just a summary of the most important methods and properties, listed by category:+The complete API reference can be found [[https://api.curvyeditor.com/​|here]],​ this is just a summary of the most important methods and properties, listed by category:
  
 ===== General ===== ===== General =====
-//This applies ​both to [[.:​curvyspline]] and [[.:​curvysplinegroup]]//+//This applies ​for [[.:​curvyspline]]//​
  
-==IsInitialized== 
-Before using any spline API, be sure to check whether the spline is fully initialized,​ see [[../​apigeneral]] 
 ==Refresh()== ==Refresh()==
-Refreshes the spline (i.e. updates the [[.:cache|cache]]). This is called automatically at the regular Update() call if neccessary. The only reason you may need to call this by yourself is if you manipulate the spline by code and want to read data from the spline directly afterwards.+Refreshes the spline (i.e. updates the [[:documentation:​performancetips#​caching|cache]]). This is called automatically at the regular Update() call if neccessary. The only reason you may need to call this by yourself is if you manipulate the spline by code and want to read data from the spline directly afterwards.
 <note tip>​Refresh() rebuilds the cache only if neccessary, so calling it multiple times won't affect performance!</​note>  ​ <note tip>​Refresh() rebuilds the cache only if neccessary, so calling it multiple times won't affect performance!</​note>  ​
 =====Unit Conversion===== =====Unit Conversion=====
Line 39: Line 37:
 ==GetOrientationFast()== ==GetOrientationFast()==
 Gets the rotation for a given TF or F, i.e. LookRotation(tangent,​up) Gets the rotation for a given TF or F, i.e. LookRotation(tangent,​up)
-=====Movement===== 
-Movement methods work by changing an input TF value to reflect a movement over a certain portion of the spline 
-==Move()== 
-Moves by a certain TF distance 
-==MoveBy()== 
-Moves by a certain world units distance by extrapolating the distance using the current curvation 
-==MoveByLengthFast()== 
-Moves by a certain world units distance by using the cached distances 
 =====Add/​Delete Control Points===== =====Add/​Delete Control Points=====
-==Add()==+==Add(), InsertBefore() and InsertAfter()==
 Adds one or more Control Points Adds one or more Control Points
 ==Delete()== ==Delete()==