Make point's infomation private and pass through parameters

Signed-off-by: plysan <plysab@gmail.com>