summaryrefslogtreecommitdiff
path: root/vector.mod
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2005-10-03 22:22:33 +0000
committerIan C <ianc@noddybox.co.uk>2005-10-03 22:22:33 +0000
commit98cd911184f69d1f9e22eccdd2e5f7aff86bee2a (patch)
treeb4ee0ca3f5d5c3033e63ea790a5e0d7626fedd25 /vector.mod
parent1371436e7dc0d5a685804b17ff600dc5fb9e3a2a (diff)
Added Clone()
Diffstat (limited to 'vector.mod')
-rw-r--r--vector.mod/vector.bmx8
1 files changed, 8 insertions, 0 deletions
diff --git a/vector.mod/vector.bmx b/vector.mod/vector.bmx
index 485fff1..d0b1a07 100644
--- a/vector.mod/vector.bmx
+++ b/vector.mod/vector.bmx
@@ -50,6 +50,14 @@ Type TVector
End Function
Rem
+ bbdoc: Clone this vector to a new object.
+ returns: The created vector.
+ EndRem
+ Method Clone:TVector()
+ Return Create(x,y,z)
+ End Method
+
+ Rem
bbdoc: Is the vector null.
returns: True if the vector is null (all components zero), False otherwise.
EndRem