Sync with varun's pr
parent
08da0ab5a6
commit
e9deca590a
|
@ -1,9 +1,23 @@
|
|||
from .gtsam import *
|
||||
|
||||
def Point2(x=0, y=0):
|
||||
import numpy as np
|
||||
return np.array([x, y], dtype=float)
|
||||
|
||||
def Point3(x=0, y=0, z=0):
|
||||
def _init():
|
||||
import numpy as np
|
||||
return np.array([x, y, z], dtype=float)
|
||||
|
||||
global Point2 # export function
|
||||
|
||||
def Point2(x=0, y=0):
|
||||
return np.array([x, y], dtype=float)
|
||||
|
||||
global Point3 # export function
|
||||
|
||||
def Point3(x=0, y=0, z=0):
|
||||
return np.array([x, y, z], dtype=float)
|
||||
|
||||
# for interactive debugging
|
||||
if __name__ == "__main__":
|
||||
# we want all definitions accessible
|
||||
globals().update(locals())
|
||||
|
||||
|
||||
_init()
|
||||
|
|
Loading…
Reference in New Issue