Castle Game Engine: CastleCurves: Class TCasScriptCurve

# Class TCasScriptCurve
Description | Hierarchy | Fields | Methods | Properties
## Unit CastleCurves ## Declaration `type TCasScriptCurve = class(TCurve)` ## Description Curve defined by explicitly giving functions for Point(t) = x(t), y(t), z(t) as CastleScript expressions. ## Hierarchy TComponent T3D TCurve TCasScriptCurve ## Overview ### Methods
| `function Point(const t: Float): TVector3Single; override;`
| `function BoundingBox: TBox3D; override;`
| `constructor Create(const ATBegin, ATEnd: Float; AXFunction, AYFunction, AZFunction: TCasScriptExpression; ATVariable: TCasScriptFloat; ASegmentsForBoundingBox: Cardinal = 100);`
| `destructor Destroy; override;`
### Properties
| `property XFunction: TCasScriptExpression read FXFunction;`
| `property YFunction: TCasScriptExpression read FYFunction;`
| `property ZFunction: TCasScriptExpression read FZFunction;`
| `property TVariable: TCasScriptFloat read FTVariable;`
## Description ### Methods
| `function Point(const t: Float): TVector3Single; override;`
| `function BoundingBox: TBox3D; override;`
Simple bounding box. It is simply a `BoundingBox` of Point(i, SegmentsForBoundingBox) for i in [0 .. SegmentsForBoundingBox]. Subclasses may override this to calculate something more accurate.
| `constructor Create(const ATBegin, ATEnd: Float; AXFunction, AYFunction, AZFunction: TCasScriptExpression; ATVariable: TCasScriptFloat; ASegmentsForBoundingBox: Cardinal = 100);`
XFunction, YFunction, ZFunction references are copied here, and will be freed in destructor (so don't Free them yourself).
| `destructor Destroy; override;`
### Properties
| `property XFunction: TCasScriptExpression read FXFunction;`
`XFunction`, YFunction, ZFunction are functions based on variable 't'.
| `property YFunction: TCasScriptExpression read FYFunction;`
| `property ZFunction: TCasScriptExpression read FZFunction;`
| `property TVariable: TCasScriptFloat read FTVariable;`
This is the variable controlling 't' value, embedded also in XFunction, YFunction, ZFunction.
Generated by PasDoc 0.13.0 on 2013-08-17 21:27:12